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 3674 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!