mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Fix support for Windows XP and up (#13904)
This commit is contained in:
@@ -37,9 +37,11 @@ typedef struct JoyStick_DeviceData
|
||||
char *joystickname;
|
||||
Uint8 send_add_event;
|
||||
SDL_JoystickID nInstanceID;
|
||||
#ifdef SDL_JOYSTICK_XINPUT
|
||||
bool bXInputDevice;
|
||||
BYTE SubType;
|
||||
Uint8 XInputUserId;
|
||||
#endif
|
||||
DIDEVICEINSTANCE dxdevice;
|
||||
char path[MAX_PATH];
|
||||
int steam_virtual_gamepad_slot;
|
||||
@@ -85,10 +87,12 @@ struct joystick_hwdata
|
||||
LPDIRECTINPUTEFFECT ffeffect_ref;
|
||||
#endif
|
||||
|
||||
#ifdef SDL_JOYSTICK_XINPUT
|
||||
bool bXInputDevice; // true if this device supports using the xinput API rather than DirectInput
|
||||
bool bXInputHaptic; // Supports force feedback via XInput.
|
||||
Uint8 userid; // XInput userid index for this joystick
|
||||
DWORD dwPacketNumber;
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef SDL_JOYSTICK_DINPUT
|
||||
|
Reference in New Issue
Block a user