Merge pull request #25149 from eska014/html5-gamepad-sampling

Fix HTML5 gamepad sampling
This commit is contained in:
Rémi Verschelde 2019-01-20 09:17:24 +01:00 committed by GitHub
commit 35728e41ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {