Fix uninitialized gamepad mask in multi-controller mode
This commit is contained in:
parent
df9e7bead0
commit
bab11a731e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue