]> git.earman.xyz Git - sensor-watch.git/commitdiff
Added tapping to endless runner
authorDavid Volovskiy <devolov@gmail.com>
Sun, 17 Aug 2025 16:54:33 +0000 (12:54 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Tue, 19 Aug 2025 01:31:07 +0000 (21:31 -0400)
watch-faces/complication/endless_runner_face.c

index d3985d40926ec4ddb303ab11af1a58c77e009386..6084ef613c43ead06f887fed14eeef66a4486ad9 100644 (file)
@@ -557,6 +557,10 @@ bool endless_runner_face_loop(movement_event_t event, void *context) {
             if (game_state.curr_screen == SCREEN_TITLE)
                 change_difficulty(state);
             break;
+        case EVENT_SINGLE_TAP:
+        case EVENT_DOUBLE_TAP:
+            if (state->difficulty > DIFF_HARD) break; // Don't do this on fuel modes
+            //fall through
         case EVENT_LIGHT_BUTTON_DOWN:
         case EVENT_ALARM_BUTTON_DOWN:
             if (game_state.curr_screen == SCREEN_PLAYING && game_state.jump_state == NOT_JUMPING){