Timer Event Priority
BlitzMax Forums/MaxGUI Module/Timer Event Priority
| ||
I'm writting a MaxGUI App that uses CreateTimer(30) to redraw a canvas, so everything looks smooth. When I run the app on my (slow) oneMidi Laptop no more MOUSEMOVE, MOUSEDOWN (...) events are handled. If I set the timer to a lower value (like 5) the other events are handled. Is it possible to set the priority of the timer event lower, so other events are always prefered in the event queue? |
| ||
All events should be stuffed in the queue no matter what. Are you using hooks? Are you using maxgui.maxgui (SVN) or brl.maxgui (original)? |
| ||
Sounds to me like you are doing something wrong, like you are clearing the queue when you read the timer event, which would make you lose all the other events on the queue. |
| ||
Yes, I'm using hooks:AddHook EmitEventHook, eventHandler What's wrong with hooks? I've tried it again and the events are occuring, but they are incredible slow. When I move the mouse I have to wait some time until the Event is fired up - and I think this is because there are a lot of timer Events in the queue before the WM_MOUSEMOVE. |