diff options
author | hondres <liu.gam3@gmail.com> | 2016-01-22 22:56:05 +0100 |
---|---|---|
committer | hondres <liu.gam3@gmail.com> | 2016-01-22 22:56:05 +0100 |
commit | 1ad6ca0a81e627bb5fe8b7c88f16213abbf6ddef (patch) | |
tree | 9796583da6e2d685aed1ce66439d79926d05c33d /platform/javascript | |
parent | 14c1d7fef00dbd653dcc21102679575955a694dc (diff) |
add mappings and increase max number of buttons
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/os_javascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index ffbcd98240..562733ab89 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -623,7 +623,7 @@ void OS_JavaScript::process_joysticks() { emscripten_get_gamepad_status(i, &state); if (state.connected) { - int num_buttons = MIN(state.numButtons, 16); + int num_buttons = MIN(state.numButtons, 18); int num_axes = MIN(state.numAxes, 8); for (int j = 0; j < num_buttons; j++) { |