all repos — mgba @ 3871f1f48b778012293e83e8875a96599170300b

mGBA Game Boy Advance Emulator

Qt: Fix initial state of key mapping
Jeffrey Pfau jeffrey@endrift.com
Sat, 20 Feb 2016 23:31:54 -0800
commit

3871f1f48b778012293e83e8875a96599170300b

parent

6fe4c2a511fc1a9f431a5d1ef834a83efcc7fb62

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M CHANGESCHANGES

@@ -11,6 +11,7 @@ - Wii: Fix tilting direction

- SDL: Fix joystick initialization on BS - SDL: Fix potential joystick crash in games with rumble - SDL: Fix axes being mapped wrong + - Qt: Fix initial state of key mapping Misc: - GBA: Slightly optimize GBAProcessEvents - Qt: Add preset for DualShock 4
M src/platform/qt/GBAKeyEditor.cppsrc/platform/qt/GBAKeyEditor.cpp

@@ -254,9 +254,7 @@ void GBAKeyEditor::lookupBinding(const mInputMap* map, KeyEditor* keyEditor, GBAKey key) {

#ifdef BUILD_SDL if (m_type == SDL_BINDING_BUTTON) { int value = mInputQueryBinding(map, m_type, key); - if (value != GBA_KEY_NONE) { - keyEditor->setValueButton(value); - } + keyEditor->setValueButton(value); return; } #endif