Skip to content

Commit 2e54079

Browse files
committed
InputManager: fix alt-f4 not responding
1 parent f8df278 commit 2e54079

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/input_manager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,9 @@ class InputManager
860860
case SDL_EVENT_GAMEPAD_REMOVED:
861861
onControllerRemoved(event.gdevice.which);
862862
break;
863+
case SDL_EVENT_QUIT:
864+
PostQuitMessage(0);
865+
break;
863866
}
864867

865868
auto* gamepad = getPrimaryGamepad();

0 commit comments

Comments
 (0)