FlushEvents()?

BlitzMax Forums/MaxGUI Module/FlushEvents()?

Adam Novagen(Posted 2016) [#1]
Pretty much all in the title. Is there a FlushEvents() equivalent that'd give me a way to clear all the MaxGUI events in the queue? Or is this like asking if there's a way to remove the wheels on a car, i.e. possible but actually useless?


Derron(Posted 2016) [#2]
There is a "DispatchGuiEvents()" - which dispatches all and then clears the list.


You might also open up maxgui.mod/maxgui.mod/events.bmx

and then add your own "FlushEvents()" (eg. only emptying the list)


bye
Ron


jsp(Posted 2016) [#3]
To clear all events you could use:

While PollEvent()
Wend