Jump to content
  • Advertisement
Sign in to follow this  

How to use the Win32 API to get the absolute mouse position with no visable window?

This topic is 3614 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

Well currently I'm using a hidden window to process mouse and keyboard events in my application. This works great for the keyboard and to get the relative mouse coordinates but I need absolute coordinates and there is no way to get them using this method since the window is hidden I can't use WM_MOUSEMOVE or any other messages of that sort. I already tried to keep track of the mouse myself but it does not move with the pointer, so any other ideas?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!