mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Fix uninitialized gamepad mask in multi-controller mode
This commit is contained in:
@@ -41,6 +41,10 @@ SdlInputHandler::SdlInputHandler(bool multiController)
|
|||||||
// Player 1 is always present in non-MC mode
|
// Player 1 is always present in non-MC mode
|
||||||
m_GamepadMask = 0x1;
|
m_GamepadMask = 0x1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// Otherwise, detect gamepads on the fly
|
||||||
|
m_GamepadMask = 0;
|
||||||
|
}
|
||||||
|
|
||||||
SDL_zero(m_GamepadState);
|
SDL_zero(m_GamepadState);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user