Toggle fullscreen mode with F11 or Alt+Enter.
This commit is contained in:
parent
7a59631189
commit
2c64485272
|
@ -342,6 +342,13 @@ void getPlayerInput()
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((engine.keyState[SDLK_F11]) || ((engine.keyState[SDLK_RETURN]) && (engine.keyState[SDLK_LALT])))
|
||||||
|
{
|
||||||
|
SDL_WM_ToggleFullScreen(screen);
|
||||||
|
engine.fullScreen = !engine.fullScreen;
|
||||||
|
engine.keyState[SDLK_F11] = engine.keyState[SDLK_LALT] = engine.keyState[SDLK_RETURN] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue