Jump to content
  • Advertisement

Archived

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

MARS_999

Help with SDL & Mouse Cursor with Fullscreen

This topic is 6119 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
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"

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!