Bugzilla – Bug 3954
Knob does not work with INPUT.Time
Last modified: 2009-09-08 09:25:52 UTC
Per the Todo item in Slim/Buttons/Input/Time.pm # todo: make work with knob!
try: ,'knob' => sub { my ($client,$funct,$functarg) = @_; my @timedigits = timeDigits($client,$client->param('valueRef')); scroll($client, $client->knobPos() - $timedigits[$client->param('cursorPos')]); } can't test myself as I am not near the hardware and softsqueeze only fakes knob with up/down
Almost, but not quite. The knob only goes 0 -> 5 for the minutes, and 9, 1, 2, 3, 4, 5 for hour when the hour is not double digits.
Kevin, added comment before I added you to Cc
ok thanks. I'll do some testing when I can get to hardware. Lots of abstraction in time handling, so may have to come up with a way to grab range limits for each cursorpos as well.
Created attachment 1441 [details] reset knob params for each cursor position the trick here is that the list size changes for each digit, and depends on the current state of the digits. the prepKnob checks the state and updates the knob params to suit. seems to work for me, but it may need a bit more hardening to handle all cases.
This looks good to me. Commited as change 9049 Thanks kdf