Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

toddel

Keeping mouse inside primary window on multiple monitor system

This topic is 5443 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''m wondering how to go about keeping the mouse from going outside the game window, which is running in fullscreen mode, on a multiple monitor system. I''ve been search through MSDN docs and cant seem to find an answer (im also not the graphics programmer on the project but would like to get rid of this annoyance).

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
calling ClipCursor with the RECT that''s returned via a call to GetWindowRect for the gaming window''s HWND might do the trick.

Share this post


Link to post
Share on other sites

  • 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!