Skip to content
Snippets Groups Projects
  • Dennis Lambe Jr's avatar
    ba911631
    Add support for Razer Basilisk V2 · ba911631
    Dennis Lambe Jr authored
    Translate tilt wheel clicks to REL_HWHEEL events in the kernel driver
    Translate Profile and Clutch buttons to F18 and F19
    
    There seems to be parallel construction between the remapping in this
    driver and the M1-M5 key handling in the razerkbd driver. Since razerkbd
    assigns F17 to input code 0x24, I didn't want to use F17 to mean some
    other code in the mouse driver. Hence, F17 is skipped and the Basilisk's
    new buttons are mapped starting at F18.
    
    Repeat HWHEEL events while the wheel is held tilted with 250 ms delay &
    33 ms repeat
    
    Adjustable repeat rate and repeat delay on tilt wheel
    
    Device attr to disable tilt wheel HWHEEL translation
    
    Convert DPI, Profile buttons to BTN_ events on mouse intf
    
    There are a lot of Razer mice that this driver tries to support, and
    adding the need to grok and then patch report descriptors seemed like
    adding too much to the reverse engineering burden. Instead, I do all of
    my report interpretation in the raw_event hook.
    ba911631
    History
    Add support for Razer Basilisk V2
    Dennis Lambe Jr authored
    Translate tilt wheel clicks to REL_HWHEEL events in the kernel driver
    Translate Profile and Clutch buttons to F18 and F19
    
    There seems to be parallel construction between the remapping in this
    driver and the M1-M5 key handling in the razerkbd driver. Since razerkbd
    assigns F17 to input code 0x24, I didn't want to use F17 to mean some
    other code in the mouse driver. Hence, F17 is skipped and the Basilisk's
    new buttons are mapped starting at F18.
    
    Repeat HWHEEL events while the wheel is held tilted with 250 ms delay &
    33 ms repeat
    
    Adjustable repeat rate and repeat delay on tilt wheel
    
    Device attr to disable tilt wheel HWHEEL translation
    
    Convert DPI, Profile buttons to BTN_ events on mouse intf
    
    There are a lot of Razer mice that this driver tries to support, and
    adding the need to grok and then patch report descriptors seemed like
    adding too much to the reverse engineering burden. Instead, I do all of
    my report interpretation in the raw_event hook.