mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-29 02:08:01 +03:00
Handle SDL_QUIT
This commit is contained in:
@@ -73,6 +73,12 @@ static void sdl_getEvent(void) {
|
||||
while (SDL_PollEvent(&e)) {
|
||||
had_input = true;
|
||||
switch (e.type) {
|
||||
#ifndef __EMSCRIPTEN__
|
||||
case SDL_QUIT:
|
||||
nact->is_quit = TRUE;
|
||||
nact->wait_vsync = TRUE;
|
||||
break;
|
||||
#endif
|
||||
case SDL_WINDOWEVENT:
|
||||
switch (e.window.event) {
|
||||
case SDL_WINDOWEVENT_ENTER:
|
||||
|
||||
Reference in New Issue
Block a user