Fix HTML5 gamepad logic for Emscripten 1.38.22 compat breakage

This commit is contained in:
Leon Krause 2019-01-19 19:39:17 +01:00
parent 1efd37f1b7
commit 0d47dccda9

View file

@ -970,7 +970,8 @@ bool OS_JavaScript::main_loop_iterate() {
}
}
process_joypads();
if (emscripten_sample_gamepad_data() == EMSCRIPTEN_RESULT_SUCCESS)
process_joypads();
if (just_exited_fullscreen) {
if (window_maximized) {