summaryrefslogtreecommitdiff
path: root/apps/plugins/sliding_puzzle.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sliding_puzzle.c')
-rw-r--r--apps/plugins/sliding_puzzle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c
index 8ae2cb8abf..085db8708d 100644
--- a/apps/plugins/sliding_puzzle.c
+++ b/apps/plugins/sliding_puzzle.c
@@ -45,6 +45,8 @@ PLUGIN_HEADER
45#define PUZZLE_SHUFFLE BUTTON_SELECT 45#define PUZZLE_SHUFFLE BUTTON_SELECT
46#define PUZZLE_PICTURE BUTTON_ON 46#define PUZZLE_PICTURE BUTTON_ON
47 47
48#define PUZZLE_RC_QUIT BUTTON_RC_STOP
49
48#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ 50#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
49 (CONFIG_KEYPAD == IPOD_3G_PAD) 51 (CONFIG_KEYPAD == IPOD_3G_PAD)
50#define PUZZLE_QUIT (BUTTON_SELECT | BUTTON_MENU) 52#define PUZZLE_QUIT (BUTTON_SELECT | BUTTON_MENU)
@@ -291,6 +293,9 @@ static int puzzle_loop(void)
291 while(true) { 293 while(true) {
292 button = rb->button_get(true); 294 button = rb->button_get(true);
293 switch (button) { 295 switch (button) {
296#ifdef PUZZLE_RC_QUIT
297 case PUZZLE_RC_QUIT:
298#endif
294 case PUZZLE_QUIT: 299 case PUZZLE_QUIT:
295 /* get out of here */ 300 /* get out of here */
296 return PLUGIN_OK; 301 return PLUGIN_OK;