all repos — mgba @ 2b6462c3a8ea2742374adf65d36aa906df6b51e8

mGBA Game Boy Advance Emulator

Qt: Fix axes overriding hats
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Dec 2014 00:28:15 -0800
commit

2b6462c3a8ea2742374adf65d36aa906df6b51e8

parent

0aea272583d4179064dadb8a34302856aa5b15d7

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

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

@@ -105,7 +105,6 @@ int numAxes = SDL_JoystickNumAxes(joystick);

for (i = 0; i < numAxes; ++i) { int value = SDL_JoystickGetAxis(joystick, i); - activeButtons = GBAInputClearAxis(&m_inputMap, SDL_BINDING_BUTTON, i, activeButtons); enum GBAKey key = GBAInputMapAxis(&m_inputMap, SDL_BINDING_BUTTON, i, value); if (key != GBA_KEY_NONE) { activeButtons |= 1 << key;