mirror of https://github.com/PCSX2/pcsx2.git
SDLInputSource: Correct joystick_id type
This commit is contained in:
parent
b1165fd70b
commit
919ebd0190
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue