Qt: Fix initial state of key mapping

This commit is contained in:
Jeffrey Pfau 2016-02-20 23:31:54 -08:00
parent 6fe4c2a511
commit 3871f1f48b
2 changed files with 2 additions and 3 deletions

View File

@ -11,6 +11,7 @@ Bugfixes:
- SDL: Fix joystick initialization on BS - SDL: Fix joystick initialization on BS
- SDL: Fix potential joystick crash in games with rumble - SDL: Fix potential joystick crash in games with rumble
- SDL: Fix axes being mapped wrong - SDL: Fix axes being mapped wrong
- Qt: Fix initial state of key mapping
Misc: Misc:
- GBA: Slightly optimize GBAProcessEvents - GBA: Slightly optimize GBAProcessEvents
- Qt: Add preset for DualShock 4 - Qt: Add preset for DualShock 4

View File

@ -254,9 +254,7 @@ void GBAKeyEditor::lookupBinding(const mInputMap* map, KeyEditor* keyEditor, GBA
#ifdef BUILD_SDL #ifdef BUILD_SDL
if (m_type == SDL_BINDING_BUTTON) { if (m_type == SDL_BINDING_BUTTON) {
int value = mInputQueryBinding(map, m_type, key); int value = mInputQueryBinding(map, m_type, key);
if (value != GBA_KEY_NONE) { keyEditor->setValueButton(value);
keyEditor->setValueButton(value);
}
return; return;
} }
#endif #endif