• Simon Budig's avatar
    HID: proper LED-mapping for SpaceNavigator · d4ae650a
    Simon Budig authored
    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>
    d4ae650a
hid-input.c 27.7 KB