summaryrefslogtreecommitdiff
path: root/platform/javascript/os_javascript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
-rw-r--r--platform/javascript/os_javascript.cpp2
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++) {