all repos — mgba @ c6c57273b56df6aef0e5fda0c64cd85134a642fd

mGBA Game Boy Advance Emulator

Qt: Fix clearing analog shortcuts
Jeffrey Pfau jeffrey@endrift.com
Tue, 19 May 2015 20:04:20 -0700
commit

c6c57273b56df6aef0e5fda0c64cd85134a642fd

parent

3ace420e3fa7a4a43b4f4a5649113ebded7eb5dc

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/ShortcutController.cppsrc/platform/qt/ShortcutController.cpp

@@ -228,8 +228,8 @@ item->setButton(button);

if (oldButton >= 0) { m_buttons.take(oldButton); } + updateAxis(index, -1, GamepadAxisEvent::NEUTRAL); if (button >= 0) { - updateAxis(index, -1, GamepadAxisEvent::NEUTRAL); m_buttons[button] = item; } if (m_config) {