[SDL] disabling alt-tab under windows?

Matthias Bach marix at surfeu.de
Fri Sep 13 06:11:00 PDT 2002


when coding winapi you can simply catch alt+tab in your message loop and 
return to your programm instead of giving it to windows. (just as if 
catching another key)
this might work in sdl, too.


Romi Kuntsman wrote:

> Bill Kendrick wrote:
> 
>>Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
>>when my SDL app is in fullscreen mode?
>>
>>I'd like to add it as an option (e.g., "--nocycle"), so that users can't
>>"get out" of the application.  (Which is a good idea, since they'll
>>probably be very young children :^) )
>>
>>
>>Thanks!
>>
>>-bill!
>>  
>>
> 
> Try SDL_WM_GrabInput(SDL_GRAB_ON);
> http://sdldoc.csn.ul.ie/sdlwmgrabinput.php
> 
> RK.
> 
> 
> 

-- 
Matthias Bach

Marix eMonkey 2002
 - free guestbooks, newssystems and adrotators
 http://marix.coolfreepage.com

personal webpage:
http://www.marix.madsite.de



More information about the SDL mailing list