mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix HTML5 gamepad logic for Emscripten 1.38.22 compat breakage
(cherry picked from commit 0d47dccda9)
This commit is contained in:
parent
ed8e61dc5d
commit
8535939b27
1 changed files with 4 additions and 1 deletions
|
|
@ -716,7 +716,10 @@ bool OS_JavaScript::main_loop_iterate() {
|
|||
/* clang-format on */
|
||||
}
|
||||
}
|
||||
process_joysticks();
|
||||
|
||||
if (emscripten_sample_gamepad_data() == EMSCRIPTEN_RESULT_SUCCESS)
|
||||
process_joysticks();
|
||||
|
||||
return Main::iteration();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue