Skip to content

Commit

Permalink
Fixed select button reading would pass wrong Joy ID to function
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Sep 4, 2021
1 parent 4784f5e commit 908d294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdep/amiberry_input.cpp
Expand Up @@ -1176,7 +1176,7 @@ static void read_joystick()
else
state = SDL_GameControllerGetButton(did->controller,
static_cast<SDL_GameControllerButton>(did->mapping.button[SDL_CONTROLLER_BUTTON_BACK])) & 1;
setjoybuttonstate(i + 1, 13 + held_offset, state);
setjoybuttonstate(i, 13 + held_offset, state);
}
}
}
Expand Down

0 comments on commit 908d294

Please sign in to comment.