Hello!
I have a DualShock 4 controller that I’m interested in using to test the new sensor features in SDL 2.0.14. The controller is connected via Bluetooth to a PC running Arch Linux, which recognizes it as three separate evdev devices: the touchpad, the motion sensors, and the main controller. If I use evtest to monitor the motion sensors, the output appears correct (it is reporting ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, and ABS_RZ.)
However, SDL doesn’t recognize it - neither as a joystick, nor as additional axes or sensors on the main controller joystick, nor as a standalone motion sensor. I’ve tried the suggestion in https://wiki.gentoo.org/wiki/Sony_DualShock to use the joystick driver for the gyro, but that just causes it to control the mouse (and also seems to do so incorrectly, creating button mappings that don’t exist.)
Reading some of the source, it looked like SDL specifically excludes motion sensors to prevent unwanted interference with the main joystick. If that is the case, how should I actually access the motion sensors in SDL? Is something wrong with my controller configuration?