Merge pull request #209 from paul-ri/countdown-disable_double_tap

Countdown: Disable double tap
This commit is contained in:
voloved
2026-06-05 07:51:21 -04:00
committed by GitHub
7 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -354,7 +354,7 @@ static void handle_button_presses(bool tap_control_on, bool hit) {
{
case BJ_TITLE_SCREEN:
if (!tap_turned_on && tap_control_on) {
if (movement_enable_tap_detection_if_available()) tap_turned_on = true;
if (movement_enable_tap_detection_if_available(true)) tap_turned_on = true;
}
begin_playing(tap_control_on);
break;
@@ -384,7 +384,7 @@ static void toggle_tap_control(blackjack_face_state_t *state) {
state->tap_control_on = false;
watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
} else {
bool tap_could_enable = movement_enable_tap_detection_if_available();
bool tap_could_enable = movement_enable_tap_detection_if_available(true);
if (tap_could_enable) {
state->tap_control_on = true;
watch_set_indicator(WATCH_INDICATOR_SIGNAL);
+1 -1
View File
@@ -218,7 +218,7 @@ void countdown_face_activate(void *context) {
movement_request_tick_frequency(1);
quick_ticks_running = false;
if (state->mode != cd_running && movement_enable_tap_detection_if_available()) {
if (state->mode != cd_running && movement_enable_tap_detection_if_available(false)) {
state->tap_detection_ticks = TAP_DETECTION_SECONDS;
state->has_tapped_once = false;
}
@@ -327,7 +327,7 @@ static void toggle_sound(endless_runner_state_t *state) {
static void enable_tap_control(endless_runner_state_t *state) {
if (!state->tap_control_on) {
movement_enable_tap_detection_if_available();
movement_enable_tap_detection_if_available(true);
state->tap_control_on = true;
}
}
+1 -1
View File
@@ -367,7 +367,7 @@ static void toggle_sound(ping_state_t *state) {
static void enable_tap_control(ping_state_t *state) {
if (!state->tap_control_on) {
movement_enable_tap_detection_if_available();
movement_enable_tap_detection_if_available(true);
state->tap_control_on = true;
}
}
+1 -1
View File
@@ -237,7 +237,7 @@ void probability_face_activate(void *context)
movement_request_tick_frequency(1);
// Enable tap detection for a few seconds when face is activated
if (movement_enable_tap_detection_if_available()) {
if (movement_enable_tap_detection_if_available(true)) {
state->tap_detection_ticks = TAP_DETECTION_SECONDS;
}
}