Commit Graph

5 Commits (update-lkm)

Author SHA1 Message Date
nirenjan 339df2751d Update hid-saitek-x52 module to use default kernel mapping
Prior to this change, the kernel module was using a customized mapping.
This causes issues between users who rely on the mapping not changing
between the no-module and with-module cases.

This change updates the kernel module to report in the exact same
fashion as the default kernel, without any remapping. While this does
mean that the buttons on the X52 and X52 Pro would report different
values, a userspace daemon can always use libx52io to get the button
mapping regardless of which device is plugged in.
2023-01-03 12:36:59 -08:00
nirenjan 7f554d7ac6 Make button reports consistent between devices
The X52 and X52 Pro report the buttons in different orders, e.g., the
mouse primary button is button 30 on X52, but is button 15 on the Pro.
This change ensures that the reported values is consistent between the
different devices.
2020-08-16 01:59:27 -07:00
nirenjan 482c5980ab Fix axis report to correctly report slider and rotaries 2020-08-13 15:18:44 -07:00
nirenjan b0150c46b8 Remove unnecessary probe and remove functions
There's no need to create custom probe and remove functions - the
default behavior is sufficient.
2020-08-13 15:17:14 -07:00
nirenjan d3c55da89d Create HID driver for Saitek X52 and X52 Pro
This change replaces the old USB driver with a more modern HID driver.
This uses the HID framework, which means that we don't have to deal with
the USB transport, and only have to parse and report input events.

[skip ci]
2020-08-12 01:11:15 -07:00