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:
Wrong mappings in hidraw (buttons shifted to other buttons)
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 of05
) 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