settings: set minimum ratchet speed to 1, not 0

This commit is contained in:
Peter F. Patel-Schneider 2022-10-24 19:01:50 -04:00
parent 5bf999b841
commit 5d807f9752
1 changed files with 4 additions and 4 deletions

View File

@ -396,7 +396,7 @@ class DivertGkeys(_Setting):
class ScrollRatchet(_Setting): class ScrollRatchet(_Setting):
name = 'scroll-ratchet' name = 'scroll-ratchet'
label = _('Scroll wheel Ratcheted') label = _('Scroll Wheel Ratcheted')
description = _('Switch the mouse wheel between speed-controlled ratcheting and always freespin.') description = _('Switch the mouse wheel between speed-controlled ratcheting and always freespin.')
feature = _F.SMART_SHIFT feature = _F.SMART_SHIFT
choices_universe = _NamedInts(**{_('Freespinning'): 1, _('Ratcheted'): 2}) choices_universe = _NamedInts(**{_('Freespinning'): 1, _('Ratcheted'): 2})
@ -406,16 +406,16 @@ class ScrollRatchet(_Setting):
class SmartShift(_Setting): class SmartShift(_Setting):
name = 'smart-shift' name = 'smart-shift'
label = _('Scroll Wheel Rachet Speed') label = _('Scroll Wheel Ratchet Speed')
description = _( description = _(
'Use the mouse wheel speed to switch between ratcheted and freespinning.\n' 'Use the mouse wheel speed to switch between ratcheted and freespinning.\n'
'The mouse wheel is always free at 0, and always ratcheted at 50.' 'The mouse wheel is always ratcheted at 50.'
) )
feature = _F.SMART_SHIFT feature = _F.SMART_SHIFT
rw_options = {'read_fnid': 0x00, 'write_fnid': 0x10} rw_options = {'read_fnid': 0x00, 'write_fnid': 0x10}
class rw_class(_FeatureRW): class rw_class(_FeatureRW):
MIN_VALUE = 0 MIN_VALUE = 1
MAX_VALUE = 50 MAX_VALUE = 50
def __init__(self, feature, read_fnid, write_fnid): def __init__(self, feature, read_fnid, write_fnid):