Skip to content

Commit

Permalink
Fixed button press for flag toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
squee72564 committed Jan 8, 2024
1 parent 30783e6 commit 2c5f802
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/minesweeper_game_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,13 @@ static bool mine_sweeper_game_screen_view_play_input_callback(InputEvent* event,
}

// LOSE CONDITION OR CLEAR SURROUNDING
} else if (!model->is_holding_down_button && event->type == InputTypeRepeat) {
} else if (!model->is_holding_down_button && event->type == InputTypeLong) {
// Try to clear surrounding tiles if correct number is flagged.
is_lose_condition_triggered = try_clear_surrounding_tiles(model);
model->is_holding_down_button = true;

}
}

},
true
);
Expand Down

0 comments on commit 2c5f802

Please sign in to comment.