Help with SDL & Mouse Cursor with Fullscreen

Started by
2 comments, last by MARS_999 22 years, 6 months ago
I am running in fullscreen and doublebuffer mode set by the flags in SDL_SetVideoMode(). I see my mouse cursor only when I move the mouse. Once I stop it disapears? I am using SDL_Flip() and blitting some screens also. What needs to be done in order for me to see my mouse cursor while I am using doublebuffering? Thanks! Please forgive me! =)
Advertisement
I guess it''s kind of a long shot, but perhaps you''ve got your cursor-drawing routine placed somewhere in the routine where you move your mouse. That way, when the mouse isn''t moved, the drawing code is never reached.

-----------------------------
Jappie

BabJap Productions
"There''s no such things as bugs; they''re just unintentional extra features"
----------------------------- JappieBabJap Productions"There's no such things as bugs; they're just unintentional extra features"
Ive been using SDL for a little while now. Ive noticed that when im using fullscreen mode and blitting to and from the screen and mouse cursor disapears like you. When i debug the application in VC++ my cursor freezes but my keyboard works.

I think this might have something to do with SDL needing to blit the mouse cursor to the screen. It takes over from windows in graphics. Im assuming that you (like me) have only got portions of code completed at the moment. Once you get the mouse input code working, use that and the SDL cursor functions to blit your own cursors.

Either that or use SDL_ShowCursor(SDL_ENABLE)
-=- Murphy was an optimist -=-
I was hoping I wouldn't have to make my own cursor! I have tried using SDL_ShowCursor(SDL_ENABLED) and have had no luck with that either! Oops if I don't use fullscreen as a flag in the setmode() and use NOFRAME as a flag, I don't have this problem?

Please forgive me! =)

Edited by - mars_999 on October 19, 2001 11:29:58 AM

This topic is closed to new replies.

Advertisement