Procházet zdrojové kódy

Catch Long Presses on D Pad

Without this, if a user pressed a button too long in the main UI,
the input would be completely ignored.
nitepone před 2 roky
rodič
revize
cf68ab1e97
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      intervalometer.c

+ 2 - 1
intervalometer.c

@@ -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;