From d000a592ab0cb6dc99cbe65210241ca3c15142f8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 21 Dec 2019 22:33:21 -0800 Subject: [PATCH] Fixed windows build --- src/joystick/windows/SDL_xinputjoystick.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/joystick/windows/SDL_xinputjoystick.c b/src/joystick/windows/SDL_xinputjoystick.c index 78fa52365..d0627922a 100644 --- a/src/joystick/windows/SDL_xinputjoystick.c +++ b/src/joystick/windows/SDL_xinputjoystick.c @@ -344,8 +344,6 @@ SDL_XINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickde SDL_assert(XINPUTSETSTATE); SDL_assert(userId < XUSER_MAX_COUNT); - joystick->player_index = userId; - joystick->hwdata->bXInputDevice = SDL_TRUE; if (XINPUTGETCAPABILITIES(userId, XINPUT_FLAG_GAMEPAD, &capabilities) != ERROR_SUCCESS) {