Skip to content

Commit

Permalink
Catch Long Presses on D Pad
Browse files Browse the repository at this point in the history
Without this, if a user pressed a button too long in the main UI,
the input would be completely ignored.
  • Loading branch information
Nitepone committed Sep 3, 2023
1 parent 67879dd commit cf68ab1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intervalometer.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ int32_t flipvalo_app() {
case FVSceneMain:
// TODO(luna) Maybe give this a function.. look howl clean FVSceneConfig is...
if (event.type == EventTypeKey) {
if (event.input.type == InputTypeShort) {
if (event.input.type == InputTypeShort ||
event.input.type == InputTypeLong) {
switch (event.input.key) {
case InputKeyUp:
break;
Expand Down

0 comments on commit cf68ab1

Please sign in to comment.