diff --git a/pcsx2/Input/SDLInputSource.cpp b/pcsx2/Input/SDLInputSource.cpp index 976c573344..d07a88b2e5 100644 --- a/pcsx2/Input/SDLInputSource.cpp +++ b/pcsx2/Input/SDLInputSource.cpp @@ -688,7 +688,7 @@ bool SDLInputSource::OpenDevice(int index, bool is_gamepad) return false; } - const int joystick_id = SDL_GetJoystickID(joystick); + const SDL_JoystickID joystick_id = SDL_GetJoystickID(joystick); int player_id = gamepad ? SDL_GetGamepadPlayerIndex(gamepad) : SDL_GetJoystickPlayerIndex(joystick); for (auto it = m_controllers.begin(); it != m_controllers.end(); ++it) { diff --git a/pcsx2/Input/SDLInputSource.h b/pcsx2/Input/SDLInputSource.h index d3717c1bc9..324a4c2e9f 100644 --- a/pcsx2/Input/SDLInputSource.h +++ b/pcsx2/Input/SDLInputSource.h @@ -54,7 +54,7 @@ private: SDL_Joystick* joystick; u16 rumble_intensity[2]; int haptic_left_right_effect; - int joystick_id; + SDL_JoystickID joystick_id; int player_id; bool use_gamepad_rumble;