mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 18:25:35 -04:00
1915b5c1bf
The runtime forces SDL HIDAPI (SDL_HINT_JOYSTICK_HIDAPI=1) and disables RAWINPUT (=0) so Steam's injected virtual Xbox controller enumerates as a GameController. But HIDAPI's Xbox sub-driver is OFF by default on Windows (Xbox pads are normally RAWINPUT/XInput there), so with RAWINPUT disabled a PHYSICAL Xbox One/Series controller was claimed by no GameController driver at all -> SDL_IsGameController false -> never opened -> zero button input. PS5 DualSense was unaffected (its HIDAPI driver is on by default), which is why PS5 worked and Xbox did not. Fix: enable SDL_HINT_JOYSTICK_HIDAPI_XBOX so HIDAPI also claims Xbox pads, keeping the HIDAPI-preferred design (and avoiding the RAWINPUT+HIDAPI Xbox double-enumerate the author was avoiding). Additive hint; no effect on the working PS5 path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>