PDA

View Full Version : How do you get the mouse cursor to disappear?



04-05-2001, 09:27 AM
Is that possible in the first place?
What I'm trying to do is to do the "view" of a FPS game player, where moving the mouse up will move his view up, if he moves forward, the camera moves forward.

Thanks in Advance

Scorpion
04-05-2001, 09:50 AM
For Win32: use ShowCursor(..) API.

rts
04-05-2001, 11:29 AM
For glut: glutSetCursor(GLUT_CURSOR_NONE);

Spiral Man
04-05-2001, 01:48 PM
in sdl its...

SDL_ShowCursor(SDL_DISABLE);

rts
04-05-2001, 02:21 PM
For X: XDefineCursor(disp, w, None);

(I think.... you may want to double check)

Any other ways of hiding a cursor out there? http://www.opengl.org/discussion_boards/ubb/smile.gif

Relic
04-05-2001, 11:56 PM
Yeah http://www.opengl.org/discussion_boards/ubb/smile.gif Win32 API WNDCLASSEX: LoadCursor with a fully transparent resource bitmap.

Kainsin
04-06-2001, 07:44 AM
For Macintosh I do believe that it's HideCursor();

--Kainsin