Backwards DirectX cursor documentation?

Started by
0 comments, last by Mushu 18 years, 6 months ago
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?
And how!
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

This topic is closed to new replies.

Advertisement