Fix uninitialized gamepad mask in multi-controller mode

This commit is contained in:
Cameron Gutman
2018-08-12 01:39:22 -07:00
parent df9e7bead0
commit bab11a731e

View File

@@ -41,6 +41,10 @@ SdlInputHandler::SdlInputHandler(bool multiController)
// Player 1 is always present in non-MC mode
m_GamepadMask = 0x1;
}
else {
// Otherwise, detect gamepads on the fly
m_GamepadMask = 0;
}
SDL_zero(m_GamepadState);
}