SDLInputSource: Correct joystick_id type

This commit is contained in:
TheLastRar 2025-02-14 10:23:12 +00:00
parent b1165fd70b
commit 919ebd0190
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;