Don't pass key events to the viewer when Alt modifier is held

Fixes the stats panel briefly showing up when using 'Alt+F4' to exit.
This commit is contained in:
scrawl 2017-03-05 13:58:45 +01:00
parent fc95a45cb6
commit 21aad00612
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ namespace SDLUtil
void setControllerEventCallback(ControllerListener* listen) { mConListener = listen; }
void capture(bool windowEventsOnly);
bool isModifierHeld(SDL_Keymod mod);
bool isModifierHeld(int mod);
bool isKeyDown(SDL_Scancode key);
void setMouseVisible (bool visible);