I decided to use DirectInput as my input interface. I coded a nice little input class, but to my dismay realized that you cannot manipulate the cursor if you use D3D. I have a menu in my game, so I want the mouse to appear, and disappear in the game. Normally, I used ShowCursor. But DInput takes control in exclusive mode, and you need D3D to do the cursor drawing. Microsoft can really irritate me sometimes! Anyway, any help for an opengl coder?
Comments
Dont use the windows cursor. Make a custom image and use that. You will have to do the render in opengl.
This is how I do it. Create a custom mouse cursor(crosshair in my case). Capture the mouse input and manipulate my custom image on screen. Now if you want to make it appear and disappear, its simply a matter of a simple flag
Eg:-
if(isMouserenderable) RenderMouseCursor();
: I decided to use DirectInput as my input interface. I coded a nice little input class, but to my dismay realized that you cannot manipulate the cursor if you use D3D. I have a menu in my game, so I want the mouse to appear, and disappear in the game. Normally, I used ShowCursor. But DInput takes control in exclusive mode, and you need D3D to do the cursor drawing. Microsoft can really irritate me sometimes! Anyway, any help for an opengl coder?
: