Skip to contentSkip to conversation

drivers: hid: fix G940 axis/button mappings

PATCH f h 1 participant 1 message Apr 2, 2019

lore
Share & tools
lore

f h

author
#0 lore raw
Quoted 10 lines · Chris Boyle

Provide a complete map of axes and buttons for the Logitech Flight System G940, which fixes several issues:

Stop conflating the stick X/Y axes with the mini-stick (hat) axes. This stops reported X jumping between stick X and hat X (likewise Y).

Stop conflating the other three hat switches (non-mini-stick) with each other. This was caused by commit 190d7f02ce8e ("HID: input: do not increment usages when a duplicate is found")

Quoted 7 lines

Report TRIM1 and TRIM2, previously ignored as unrecognised usage types.

Report the MODE switch and hand sensor, previously ignored as they're in a vendor page.

---

I have to confirm, that the current kernel driver for logitech G940 is deficient (as desribed by the author of this patches).

I tested this patch series against latest stable kernel (5.0.5, debian testing) and it fixes all former input related issues.

Regards,
Jens