diff options
author | kdx <kikoodx@paranoici.org> | 2023-01-20 15:51:25 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-01-20 15:51:25 +0100 |
commit | b5fe97a97c5debdb8f803efcdaa94e80a2e49953 (patch) | |
tree | be3c9c42ab8b88375b5b743c9da272d0325df5d6 | |
parent | 360fe023ea5bbebc1d0998a4a93d1291e977bfb9 (diff) | |
download | 005-b5fe97a97c5debdb8f803efcdaa94e80a2e49953.tar.gz |
quit with escape
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lzr.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,4 @@ 005 *.o *.d +tags @@ -471,6 +471,8 @@ bool LZR_PollEvent(LZR_Event *e) _bind_menu(); if (se.key.keysym.scancode == SCODE_FULLSCREEN) LZR_ToggleFullscreen(); + if (se.key.keysym.scancode == SDL_SCANCODE_ESCAPE) + should_quit = true; const int b = _scode_to_button(se.key.keysym.scancode); if (se.key.repeat || b < 0) break; |