• Advertisement
Sign in to follow this  

Backwards DirectX cursor documentation?

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

Despite the fact that it only takes like 10 lines of code, getting the DirectX cursor was a big pain. Mostly because, on the machines I've tested, the documentation is lying. If you go to the DirectX August 2005 SDK documentation, IDirect3DDevice9::ShowCursor Method, at the bottom it shows that when you call IDirect3DDevice9::ShowCursor(TRUE) to turn on the cursor, you call SetCuror(NULL) to turn off the Windows cursor. On the machines I've tested, in fullscreen and windowed, you must not call SetCursor(NULL) at all. If you do, there is no cursor at all. Is there any other way to interpret this?

Share this post


Link to post
Share on other sites
Advertisement
While it isn't really a solution, you can always 'turn the cursor back on' when the application either loses focus or the mouse moves out of its window. It seems from your description that it's doing pretty much what its supposed to be doing - hiding the cursor.

But yeah, personally I don't believe in cursor hiding while in windowed mode :X

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement