Added SDL_JoystickGetXInputUserIndex()
This commit is contained in:
parent
2dc55a9175
commit
0485c938d7
6 changed files with 18 additions and 0 deletions
|
@ -322,6 +322,7 @@ SDL_XINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickde
|
|||
SDL_zero(state);
|
||||
joystick->hwdata->bXInputHaptic = (XINPUTSETSTATE(userId, &state) == ERROR_SUCCESS);
|
||||
joystick->hwdata->userid = userId;
|
||||
joystick->userid = userId;
|
||||
|
||||
/* The XInput API has a hard coded button/axis mapping, so we just match it */
|
||||
if (SDL_XInputUseOldJoystickMapping()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue