mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix axes overriding hats
This commit is contained in:
parent
0aea272583
commit
2b6462c3a8
|
@ -105,7 +105,6 @@ int InputController::testSDLEvents() {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue