Archived

This topic is now archived and is closed to further replies.

Help with SDL & Mouse Cursor with Fullscreen

This topic is 5904 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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! =)

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites