Advertisement

Hiding the mouse cursor

Started by December 14, 2003 10:34 AM
4 comments, last by pascoe213 21 years, 2 months ago
I am using nehe's basecode with some code I found for mouse controlled movement (ie. first person) which works fine in fullscreen mode but in windowed mode the mouse cursor being displayed is annoying. How can I make the mouse cursor invisible. Sorry if this question has come up before (Im sure it has), every time I try to use the search feature it tells me An error occurred on the server when processing the URL. Please contact the system administrator. Thanks in advance Pascoe [edited by - pascoe213 on December 14, 2003 11:58:28 AM]
ShowCursor(false) should do the trick.
Advertisement
If you''re working on windows:

int ShowCursor(
BOOL bShow // cursor visibility
);

If you''re using Direct3D

IDirect3DDevice8::ShowCursor(BOOL bShow)
For showing the cursor again:

while(ShowCursor(TRUE) < 0);
thanks worked fine
Sorry that first post should say it tells me

An error occurred on the server when processing the URL. Please contact the system administrator.

pascoe213

This topic is closed to new replies.

Advertisement