If you only describe half the problem, (less--how do you distinguish an "echo" from the "real thing"?), you only get half a solution. That said, the architecture stays the same.
You either filter events before you queue them, or after you dequeue them, whichever is more convenient and timely.
In reply to Re^3: How to wait for events, and not lose any, while processing them ?
by BrowserUk
in thread How to wait for events, and not lose any, while processing them ?
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |