Jump to content
  • Advertisement
Sign in to follow this  
bobFritzelpuff

Another Question: Mouse Position

This topic is 4076 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
GetCursorPos(&POINT);

Make a POINT object, and pass reference to GetCursorPos and it will fill it with mouse's current position.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!