From 7215eb3a07bb823f3ce24d1c42f4a9f7f17bb5cb Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 24 Jan 2009 09:55:11 +0000 Subject: [PATCH] Handle reset --- CHANGES.WII | 4 ++++ Src/Display_SDL.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES.WII b/CHANGES.WII index bcef57d..9fa284f 100644 --- a/CHANGES.WII +++ b/CHANGES.WII @@ -1,5 +1,9 @@ version 6: TODO: Multiple frodo versions, switch between + * Handle reset button (back to menu) + + * General code cleanup, e.g., simplified menu system and reduced the + amount of code for that and some other things * Increase key delay (should hopefully avoid the LOQD problem) diff --git a/Src/Display_SDL.h b/Src/Display_SDL.h index 0c6b2d0..781b57e 100644 --- a/Src/Display_SDL.h +++ b/Src/Display_SDL.h @@ -538,6 +538,10 @@ void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joyst break; } } +#if defined(GEKKO) + if (SYS_ResetButtonDown() != 0) + quit_requested = true; +#endif }