diff --git a/src/game.c b/src/game.c index be993c1..e08649c 100644 --- a/src/game.c +++ b/src/game.c @@ -79,6 +79,8 @@ static struct oshu_hit* find_hit(struct oshu_game *game, int x, int y) */ static void hit(struct oshu_game *game) { + if (game->paused) + return; int x, y; oshu_get_mouse(game->display, &x, &y); int now = game->audio->current_timestamp * 1000; @@ -126,6 +128,9 @@ static void handle_event(struct oshu_game *game, SDL_Event *event) else if (event->key.keysym.sym == SDLK_ESCAPE) toggle_pause(game); break; + case SDL_MOUSEBUTTONDOWN: + hit(game); + break; } }