forked from atar-axis/xpadneo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hid-xpadneo: Move SDL work-arounds to parent device
This prevents SDL from presenting our controller device twice when HIDAPI is used. This is especially visible in Proton after the Xinput implementation enumerated all the devices: ``` # grep 'Found sdl' steam-1091500.log | grep 'xinput_hack: 0' 0080:trace:plugplay:try_add_device Found sdl game controller 0x0 (vid 045e, pid 02fd, version 0, serial L"030000005e040000fd02000000006800", xinput_hack: 0) 0080:trace:plugplay:try_add_device Found sdl game controller 0x3 (vid 045e, pid 02e0, version 2307, serial L"050000005e040000e002000003090000", xinput_hack: 0) ``` Many games only support one controller anyways, so the issue is not visible for most games but Cyberpunk 2077 since patch 1.2 seems to support multiple controllers at the same time. See-also: ValveSoftware/Proton#4707 Maybe-affects: atar-axis#180 Signed-off-by: Kai Krakow <[email protected]>
- Loading branch information
Showing
1 changed file
with
54 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters