From ff6f7a8e220b05a61c8438bf07a8980f9d2d2626 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Sat, 16 Nov 2024 22:06:02 +0100 Subject: [PATCH] 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 --- lib/logitech_receiver/settings_templates.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/logitech_receiver/settings_templates.py b/lib/logitech_receiver/settings_templates.py index ea8179d9..5553dc66 100644 --- a/lib/logitech_receiver/settings_templates.py +++ b/lib/logitech_receiver/settings_templates.py @@ -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