Knowing mouse state?
-
Hi there, I need to know whether the mouse cursor is within a certain area and if it has one (or more) buttons down -- but I have to do this without passing through an event handler. Is there a quick, easy way of knowing the current mouse state? Something similar to
GetKeyState()
but applicable for the mouse? Thanks a lot, David -
Hi there, I need to know whether the mouse cursor is within a certain area and if it has one (or more) buttons down -- but I have to do this without passing through an event handler. Is there a quick, easy way of knowing the current mouse state? Something similar to
GetKeyState()
but applicable for the mouse? Thanks a lot, David -
Hi there, I need to know whether the mouse cursor is within a certain area and if it has one (or more) buttons down -- but I have to do this without passing through an event handler. Is there a quick, easy way of knowing the current mouse state? Something similar to
GetKeyState()
but applicable for the mouse? Thanks a lot, DavidGetAsyncKeyState is the function you want for mouse buttons, pass in VK_LBUTTON / VK_RBUTTON as appropriate
If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling