settings: Add ratchet setting for smart shift enhanced devices (#2681)

* Add ratchet setting for smart shift enhanced devices

* Update lib/logitech_receiver/settings_templates.py

---------

Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
This commit is contained in:
Max Ammann 2024-11-16 22:06:02 +01:00 committed by GitHub
parent 8b0904ead0
commit ff6f7a8e22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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)
@ -1750,6 +1755,7 @@ SETTINGS = [
HiresMode, # simple
ScrollRatchet, # simple
SmartShift, # working
ScrollRatchetEnhanced,
SmartShiftEnhanced, # simple
ThumbInvert, # working
ThumbMode, # working