• Jiri Kosina's avatar
    HID: hid-input quirk for BTC 8193 · 36ccaad6
    Jiri Kosina authored
    BTC 8193 keyboard handles its scrollwheel in very non-standard way.
    It produces two non-standard usages for scrolling up and down, in
    both cases with postive value equaling to 1. We handle this by temporary
    mapping, which we then catch in quirk event handler, and remap to
    negative HWHEEL even in order to introduce correct behavior.
    
    Also the button requires special mapping, as it triggers standard-violating
    usage code.
    
    Reported in kernel.org bugzilla #9385
    Reported-by: default avatarKir Kolyshkin <kir@sacred.ru>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    36ccaad6
hid-quirks.c 43.4 KB