Skip to content

Commit

Permalink
settings: Add ratchet setting for smart shift enhanced devices (#2681)
Browse files Browse the repository at this point in the history
* Add ratchet setting for smart shift enhanced devices

* Update lib/logitech_receiver/settings_templates.py

---------

Co-authored-by: Peter F. Patel-Schneider <[email protected]>
  • Loading branch information
maxammann and pfps authored Nov 16, 2024
1 parent 8b0904e commit ff6f7a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/logitech_receiver/settings_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,11 @@ class SmartShiftEnhanced(SmartShift):
rw_options = {"read_fnid": 0x10, "write_fnid": 0x20}


class ScrollRatchetEnhanced(ScrollRatchet):
feature = _F.SMART_SHIFT_ENHANCED
rw_options = {"read_fnid": 0x10, "write_fnid": 0x20}


# the keys for the choice map are Logitech controls (from special_keys)
# each choice value is a NamedInt with the string from a task (to be shown to the user)
# and the integer being the control number for that task (to be written to the device)
Expand Down Expand Up @@ -1750,6 +1755,7 @@ def build(cls, setting_class, device):
HiresMode, # simple
ScrollRatchet, # simple
SmartShift, # working
ScrollRatchetEnhanced,
SmartShiftEnhanced, # simple
ThumbInvert, # working
ThumbMode, # working
Expand Down

0 comments on commit ff6f7a8

Please sign in to comment.