diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 89b78d75c1..0e0958e798 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -751,15 +751,15 @@ int main(int argc, char *argv[]) { break; } } - if (g_QuitRequested) break; - const uint8 *keys = (const uint8 *)SDL_GetKeyState(NULL); SimulateGamepad(keys, &input_state); input_state.pad_buttons = pad_buttons; UpdateInputState(&input_state, true); NativeUpdate(input_state); + if (g_QuitRequested) + break; NativeRender(); #if defined(PPSSPP) && !defined(MAEMO) if (lastUIState != globalUIState) {