1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

add mappings and increase max number of buttons

This commit is contained in:
hondres
2016-01-22 22:56:05 +01:00
parent 14c1d7fef0
commit 1ad6ca0a81
3 changed files with 9 additions and 6 deletions

View File

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