Sign in to follow this  
m_pBjrn

SDL focus other apps in fullscreen

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this