mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-20 23:12:24 +00:00
Swaps XInput with RawInput driver
This swaps XInput hint infavor of RawInput (alongside Correlate XInput) to improve controller compatibility across Xbox gamepads, while allowing more advanced feature sets.
This commit is contained in:
parent
824405b236
commit
f03fdcad24
1 changed files with 2 additions and 1 deletions
|
|
@ -309,7 +309,8 @@ void hid::Init()
|
|||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "1");
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1");
|
||||
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "1");
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "1");
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT, "1");
|
||||
|
||||
SDL_InitSubSystem(SDL_INIT_EVENTS);
|
||||
SDL_AddEventWatch(HID_OnSDLEvent, nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue