Another Question: Mouse Position
I just learned to use DirectInput with the mouse, but it only seems to give me relative mouse position: how far the mouse has moved since last checked. My question is, how do I get the initial mouse position? Or, at any given time, how do I get the absolute mouse position?
GetCursorPos(&POINT);
Make a POINT object, and pass reference to GetCursorPos and it will fill it with mouse's current position.
Make a POINT object, and pass reference to GetCursorPos and it will fill it with mouse's current position.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement