Get Mouse Pointer location ?

BlitzMax Forums/MaxGUI Module/Get Mouse Pointer location ?

Boulderdash(Posted 2007) [#1]
How do I get the mouse-x and mouse-y for my next demo? Either over a canvas or the absolute Desktop position would be better.
Do I enable input polling somehow?
Im using Hooks to...


TomToad(Posted 2007) [#2]
You will need to check EVENT_MOUSEMOVE yourself and update variables each time.

Case EVENT_MOUSEMOVE
    Mouse_X = Event.X 'Assuming Mouse_X and Mouse_Y was declared Global somewhere
    Mouse_Y = Event.Y



Boulderdash(Posted 2007) [#3]
Cool Thanks

Wait for my next Demo, you will get a laugh, if this works I will upload it tommorrow.