static void sdlEventProc(const SDL_Event &e, Game &game)
{
int val;
+ bool skipkey = false;
SDLMod mod;
switch(e.type)
{
if (e.key.keysym.mod & KMOD_CTRL)
{
+ skipkey = true;
SDL_GrabMode mode = SDL_GRAB_ON;
if ((SDL_GetVideoSurface()->flags & SDL_FULLSCREEN) == 0)
{
else if (e.key.keysym.sym == SDLK_RETURN)
{
if (e.key.keysym.mod & KMOD_ALT)
+ {
+ skipkey = true;
SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
+ }
}
- if (e.key.keysym.sym < SDLK_LAST)
+ if ((!skipkey) && (e.key.keysym.sym < SDLK_LAST))
{
if (KeyTable[e.key.keysym.sym] != 0xffff)
SetKey(KeyTable[e.key.keysym.sym]);