Explorar el Código

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 hace 2 años
padre
commit
cf68ab1e97
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;