mirror of https://github.com/PCSX2/pcsx2.git
QT-SDL: Fix SDL Input compilation
This commit is contained in:
parent
9c3270a2de
commit
105aab0345
|
@ -337,7 +337,7 @@ bool SDLInputSource::OpenGameController(int index)
|
|||
}
|
||||
|
||||
const int joystick_id = SDL_JoystickInstanceID(joystick);
|
||||
const int player_id = SDL_GameControllerGetPlayerIndex(gcontroller);
|
||||
int player_id = SDL_GameControllerGetPlayerIndex(gcontroller);
|
||||
if (player_id < 0 || GetControllerDataForPlayerId(player_id) != m_controllers.end())
|
||||
{
|
||||
const int free_player_id = GetFreePlayerId();
|
||||
|
|
Loading…
Reference in New Issue