Allow ENTER/EXIT to be used with the NV14

This requires enabling HARDWARE_KEYS, otherwise the UI won't have any key handling compiled.
This commit is contained in:
Raphael Coeffic
2021-08-01 10:02:03 +02:00
parent 89bedc5365
commit 8172d38906
16 changed files with 30 additions and 27 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ void TimeEdit::onEvent(event_t event)
if (editMode) {
if (event == EVT_ROTARY_RIGHT) {
int value = getValue();
value += rotencSpeed * step;
value += ROTARY_ENCODER_SPEED() * step;
if (value <= vmax)
setValue(value);
else
@@ -63,7 +63,7 @@ void TimeEdit::onEvent(event_t event)
}
else if (event == EVT_ROTARY_LEFT) {
int value = getValue();
value -= rotencSpeed * step;
value -= ROTARY_ENCODER_SPEED() * step;
if (value >= vmin)
setValue(value);
else