Explorar o 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 %!s(int64=2) %!d(string=hai) anos
pai
achega
cf68ab1e97
Modificáronse 1 ficheiros con 2 adicións e 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;