Fixed windows build
This commit is contained in:
parent
cc7a10af34
commit
404d56d564
1 changed files with 0 additions and 2 deletions
|
@ -344,8 +344,6 @@ SDL_XINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickde
|
||||||
SDL_assert(XINPUTSETSTATE);
|
SDL_assert(XINPUTSETSTATE);
|
||||||
SDL_assert(userId < XUSER_MAX_COUNT);
|
SDL_assert(userId < XUSER_MAX_COUNT);
|
||||||
|
|
||||||
joystick->player_index = userId;
|
|
||||||
|
|
||||||
joystick->hwdata->bXInputDevice = SDL_TRUE;
|
joystick->hwdata->bXInputDevice = SDL_TRUE;
|
||||||
|
|
||||||
if (XINPUTGETCAPABILITIES(userId, XINPUT_FLAG_GAMEPAD, &capabilities) != ERROR_SUCCESS) {
|
if (XINPUTGETCAPABILITIES(userId, XINPUT_FLAG_GAMEPAD, &capabilities) != ERROR_SUCCESS) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue