Skip to content

Commit

Permalink
bugfix: when loading custom mapping, skip the check for isrealbutton (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jun 18, 2024
1 parent d66b8b0 commit 9cf4223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ int input_get_default_joystick(struct uae_input_device* uid, int i, int port, in
const auto function_offset = n * REMAP_BUTTONS;
for (int button = 0; button < SDL_CONTROLLER_BUTTON_MAX; button++)
{
if (button_map[n][button] && isrealbutton(did, button))
if (button_map[n][button])
setid(uid, i, ID_BUTTON_OFFSET + button + function_offset, 0, port, button_map[n][button], af, gp);
}

Expand Down

0 comments on commit 9cf4223

Please sign in to comment.