Skip to content

Can I clear the event queue in my listener?

thofrey edited this page Jul 23, 2013 · 3 revisions

No, you cannot clear the event queue inside a listener. This is by design as a listener should not be able to stop the processing of the current event and should focus on interaction between the controller (Mach-II) and your model. If you need to clear the event queue inside a listener, you probably need to use a filter. Filters should focus on the interaction between the controller (Mach-II) and your event-handler.

Clone this wiki locally