Skip to content

Commit f03fdca

Browse files
committed
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.
1 parent 824405b commit f03fdca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UnleashedRecomp/hid/driver/sdl_hid.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ void hid::Init()
309309
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "1");
310310
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
311311
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1");
312-
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "1");
312+
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "1");
313+
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT, "1");
313314

314315
SDL_InitSubSystem(SDL_INIT_EVENTS);
315316
SDL_AddEventWatch(HID_OnSDLEvent, nullptr);

0 commit comments

Comments
 (0)