Notifications
Clear all
[Closed] Mouse move callback 2D
Sep 16, 2009 11:54 am
Hello everbody!
I’m trying to create dialog window to display errors and warnings, that closes automatically when the mouse cursor has moved a certain distance away from it.
For this I need a callback function that is called whenever the user moves the mouse.
There’s global variable that stores the cursor position on the screen at all times: mouse.screenpos – but I would need constant update on that.
Do you know a good way of doing this?
Thanks!
-Sascha
2 Replies
Sep 16, 2009 11:54 am
Don’t use a callBack, use a timer in the dialog and keep checking the distance the mouse is away from the dialogs position.