Skip to content

Commit

Permalink
Fixed map of one keyboard button to multiple controllers.
Browse files Browse the repository at this point in the history
See #277.
  • Loading branch information
punesemu committed Jan 11, 2023
1 parent bebf7c3 commit 6822ff5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,8 @@ void gui_decode_all_input_events(void) {
if (qt.screen->events.keyb.count()) {
for (_wdgScreen_keyboard_event &event : qt.screen->events.keyb) {
for (BYTE i = PORT1; i < PORT_MAX; i++) {
if (port_funct[i].input_decode_event && (port_funct[i].input_decode_event(event.mode,
event.autorepeat, event.event, event.type, &port[i]) == EXIT_OK)) {
break;
if (port_funct[i].input_decode_event) {
port_funct[i].input_decode_event(event.mode, event.autorepeat, event.event, event.type, &port[i]);
}
}
}
Expand Down

0 comments on commit 6822ff5

Please sign in to comment.