You've already forked godot
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:
@@ -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++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user