add default loop handler to all current watch faces
This commit is contained in:
committed by
joeycastillo
parent
12f2d31f98
commit
2b22ecc8e4
@@ -66,18 +66,6 @@ bool hello_there_face_loop(movement_event_t event, movement_settings_t *settings
|
||||
state->current_word = (state->current_word + 1) % 2;
|
||||
}
|
||||
break;
|
||||
case EVENT_LIGHT_BUTTON_UP:
|
||||
// when the user presses 'light', we illuminate the LED. We could override this if
|
||||
// our UI needed an additional button for input, consuming the light button press
|
||||
// but not illuminating the LED.
|
||||
movement_illuminate_led();
|
||||
break;
|
||||
case EVENT_MODE_BUTTON_UP:
|
||||
// when the user presses 'mode', we tell movement to move to the next watch face.
|
||||
// movement will call our resign function, clear the screen, and transfer control
|
||||
// to the next watch face in the list.
|
||||
movement_move_to_next_face();
|
||||
break;
|
||||
case EVENT_ALARM_BUTTON_UP:
|
||||
// when the user presses 'alarm', we toggle the state of the animation. If animating,
|
||||
// we stop; if stopped, we resume.
|
||||
@@ -97,7 +85,9 @@ bool hello_there_face_loop(movement_event_t event, movement_settings_t *settings
|
||||
// and it will do it long before the watch enters low energy mode. This ensures we
|
||||
// won't be on screen, and thus opts us out of getting the EVENT_LOW_ENERGY_UPDATE above.
|
||||
movement_move_to_face(0);
|
||||
break;
|
||||
default:
|
||||
movement_default_loop_handler(event, settings);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user