From 6822ff5bfd2c6bfd613ee7a4796ba2c23a55d25c Mon Sep 17 00:00:00 2001 From: Fabio Cavallo Date: Wed, 11 Jan 2023 16:39:58 +0100 Subject: [PATCH] Fixed map of one keyboard button to multiple controllers. See https://github.com/punesemu/puNES/issues/277. --- src/gui/qt.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/qt.cpp b/src/gui/qt.cpp index c2b19e795..9a326e8b9 100644 --- a/src/gui/qt.cpp +++ b/src/gui/qt.cpp @@ -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]); } } }