Jump to content
  • Advertisement
Sign in to follow this  

Need windowed mode mouse cursor suggestion

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

Hi, my game works well in fullscreen and windowed modes. My questions is concerning the best way to handle mouse input. Basically I keep track of the mouse positions (DirectInput) and draw a cursor at the right place. In windowed mode, however, you should be able to move to another program or whatever. I'm thinking I should release the mouse when the game is paused or something like that, but then you can't use the game cursor to select "unpause" inside the game GUI. The best idea I have right now is to show BOTH cursors at once, whenever the game is paused, and the 'game' cursor basically just gets stuck at the edges of the window if you move the cursor to the taskbar/another app/etc. How have other people handled this issue?

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!