From 1ad6ca0a81e627bb5fe8b7c88f16213abbf6ddef Mon Sep 17 00:00:00 2001 From: hondres Date: Fri, 22 Jan 2016 22:56:05 +0100 Subject: add mappings and increase max number of buttons --- platform/javascript/os_javascript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/javascript') 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++) { -- cgit v1.2.3