Jump to content
  • Advertisement
Sign in to follow this  
MasterWorks

Need windowed mode mouse cursor suggestion

This topic is 4827 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
Advertisement
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!