Another Question: Mouse Position

Started by
0 comments, last by Crazyfool 17 years ago
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?
Advertisement
GetCursorPos(&POINT);

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