Jump to content
  • Advertisement
Sign in to follow this  
programmer_tom

dx cursor problem in windowed mode

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

trying to get the dx mouse working in windowed mode...it bounces all over the place. no idea what the deal is. it works fine in fullscreen. i load a texture, get a surface etc... m_pd3dDevice->SetCursorProperties ( 0, 0, pSurface ); m_pd3dDevice->ShowCursor ( TRUE ); do i even have to set the cursor pos. every frame? it seems to do it itself. any ideas? programmer_tom

Share this post


Link to post
Share on other sites
Advertisement
If the SDK is correct, my post will not be helpful... but just in case :)

The win32 ShowCursor function is not an absolute value... ShowCursor(TRUE) does not actually show the cursor, it simply increments a variable. So if you have multiple calls to ShowCursor(FALSE), then ShowCursor(TRUE) must be called that many times to actually show the cursor.

MSDN claims that the dx ShowCursor function either shows or hides regardless of the previous calls. Do you use the win32 ShowCursor() function anywhere?

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!