atar-axis / xpadneo

Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
https://atar-axis.github.io/xpadneo/
GNU General Public License v3.0
1.92k stars 111 forks source link

xpadneo, hidraw: Also work around SDL2 hidraw mode conflicts #320

Closed kakra closed 2 years ago

kakra commented 2 years ago

Also fixes Steam Input which apparently also uses SDL2.

The bug shows up when SDL identifies the controller as being on USB instead of Bluetooth (SDL Gamepad ID starts with 03 instead of 05) which then messes with SDL's expectations for the contents of hidraw.

This fixes two SDL problems:

See-also: https://github.com/atar-axis/xpadneo/issues/286 Maybe-fixes: https://github.com/atar-axis/xpadneo/issues/303 Maybe-fixes: https://github.com/atar-axis/xpadneo/issues/311 Maybe-fixes: https://github.com/atar-axis/xpadneo/issues/314 Signed-off-by: Kai Krakow kai@kaishome.de

codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit 8747e7bb and detected 0 issues on this pull request.

View more on Code Climate.