Skip to content
Commit d4ae650a authored by Simon Budig's avatar Simon Budig Committed by Jiri Kosina
Browse files

HID: proper LED-mapping for SpaceNavigator



This change introduces a mapping for LED indicators between the HID
specification and the Linux input subsystem. The previous code properly
mapped the LEDs relevant for Keyboards, but garbeled the remaining ones.
With this change all LED enums from the input system get mapped to more
or less equivalent LED numbers from the HID specification.

This patch also ensures that the unused bits in a HID report to the
device are zeroed out. This makes the 3Dconnexion SpaceNavigator fully
usable with the linux input system.

Signed-off-by: default avatarSimon Budig <simon@budig.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 641266fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment