]> git.earman.xyz Git - sensor-watch.git/commitdiff
Able to reset the win-lose rate
authorDavid Volovskiy <devolov@gmail.com>
Wed, 3 Dec 2025 12:50:38 +0000 (07:50 -0500)
committerDavid Volovskiy <devolov@gmail.com>
Wed, 3 Dec 2025 12:50:38 +0000 (07:50 -0500)
watch-faces/complication/blackjack_face.c

index 09cf9e4ef77990fce3fa4da9aea4fee5b369543f..c5dda6b6bcb75156e026d4f0cb27b7dea8857416 100755 (executable)
@@ -444,6 +444,11 @@ bool blackjack_face_loop(movement_event_t event, void *context) {
         case EVENT_ALARM_LONG_PRESS:\r
             if (game_state == BJ_TITLE_SCREEN) {\r
                 toggle_tap_control(state);\r
+            } else if (game_state == BJ_WIN_RATIO) {\r
+                // Reset the win-lose ratio\r
+                state->games_won = 0;\r
+                state->games_played = 0;\r
+                watch_display_text(WATCH_POSITION_BOTTOM, "  0Pct");\r
             }\r
             break;\r
         case EVENT_TIMEOUT:\r