From 2ea97d888cd50aaec5646c620c24601b823d581b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 12 Dec 2017 22:18:01 +0100 Subject: [PATCH] added delaying joystick actions also on the high scores screen --- src/events.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/events.c b/src/events.c index c8f7248f..66486773 100644 --- a/src/events.c +++ b/src/events.c @@ -2227,6 +2227,7 @@ void HandleJoystick() case GAME_MODE_LEVELNR: case GAME_MODE_SETUP: case GAME_MODE_INFO: + case GAME_MODE_SCORES: { static unsigned int joystickmove_delay = 0; static unsigned int joystickmove_delay_value = GADGET_FRAME_DELAY; @@ -2259,16 +2260,14 @@ void HandleJoystick() HandleSetupScreen(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); else if (game_status == GAME_MODE_INFO) HandleInfoScreen(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); + else if (game_status == GAME_MODE_SCORES) + HandleHallOfFame(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); joystick_last = joystick; break; } - case GAME_MODE_SCORES: - HandleHallOfFame(0, 0, dx, dy, !newbutton); - break; - case GAME_MODE_PLAYING: if (tape.playing || keyboard) newbutton = ((joy & JOY_BUTTON) != 0); -- 2.34.1