From 3a5002134878d19e7e0357dc951e185896bd292b Mon Sep 17 00:00:00 2001 From: TQMatvey Date: Sat, 15 Oct 2022 12:54:00 +0700 Subject: [PATCH] Flappy: Allow using UP key to jump --- applications/plugins/flappy_bird/flappy_bird.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/plugins/flappy_bird/flappy_bird.c b/applications/plugins/flappy_bird/flappy_bird.c index c4ded22e7..b38492ee9 100644 --- a/applications/plugins/flappy_bird/flappy_bird.c +++ b/applications/plugins/flappy_bird/flappy_bird.c @@ -297,6 +297,10 @@ int32_t flappy_game_app(void* p) { if(event.input.type == InputTypePress) { switch(event.input.key) { case InputKeyUp: + if(game_state->state == GameStateLife) { + flappy_game_flap(game_state); + } + break; case InputKeyDown: break;