Jump to content
  • Advertisement
Sign in to follow this  
m_pBjrn

SDL focus other apps in fullscreen

This topic is 3856 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

Hiya! I'm creating a boot menu for the games my classmates and I've created in Torque, Game Maker etc(sitting on windows). I use C++ and SDL and use the system() call to run the executables. If I run the program in windowed mode, it all works as expected. -The game starts up, I can play and when I quit it goes back into the menu. But I have a problem when I init video with SDL_FULLSCREEN parameter. What happens is when I run another executable it doesn't change focus to the new application. The game starts though, sound works and it receives the input, but I can't jump to it (using alt+tab or similar). I'm stuck in the frozen SDL application. I found the SetActiveWindow function (http://msdn2.microsoft.com/en-us/library/ms646311(VS.85).aspx) when searching for solutions, but I'm not sure it would help me since it seems that the window is active (receives input) and I don't want to switch to win32 programming either. Can't find much else and can't figure it out. Any takers?

Share this post


Link to post
Share on other sites
Advertisement
Why don't you just bring the boot menu window out of full-screen mode, or kill it completely before calling your friend's game?

Share this post


Link to post
Share on other sites
Quote:
Original post by MJPWhy don't you just bring the boot menu window out of full-screen mode
Heh, didn't think of that actually. I'll try that out. Hopefully it'll look OK in terms of aesthetics. Thanks :)

Quote:
Original post by MJP..or kill it completely before calling your friend's game?
The plan is to put the menu into an arcade cabinet and if I kill it, it need to boot up again after the other game quits. Out of curiosity, how would I achieve that functionality?

Share this post


Link to post
Share on other sites
Quote:
Original post by m_pBjrn
Quote:
Original post by MJPWhy don't you just bring the boot menu window out of full-screen mode
Heh, didn't think of that actually. I'll try that out. Hopefully it'll look OK in terms of aesthetics. Thanks :)

Quote:
Original post by MJP..or kill it completely before calling your friend's game?
The plan is to put the menu into an arcade cabinet and if I kill it, it need to boot up again after the other game quits. Out of curiosity, how would I achieve that functionality?


you could just iconify (minimize) it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!