summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.c
diff options
context:
space:
mode:
authorMichiel Van Der Kolk <not.valid@email.address>2005-03-03 19:54:47 +0000
committerMichiel Van Der Kolk <not.valid@email.address>2005-03-03 19:54:47 +0000
commitcd040ddd7cfa2b68ee27639698e644c92f8fd5de (patch)
treeed40d36a5d354b564e3789d10eb0f0eec25e16eb /apps/plugins/rockboy/sys_rockbox.c
parent3921e1aa6979163c2a07122dff49f6afef977a94 (diff)
downloadrockbox-cd040ddd7cfa2b68ee27639698e644c92f8fd5de.tar.gz
rockbox-cd040ddd7cfa2b68ee27639698e644c92f8fd5de.tar.bz2
rockbox-cd040ddd7cfa2b68ee27639698e644c92f8fd5de.zip
First stages of rockboy menu - press A/B mode to enter, contributed by pabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6120 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 4adb0a345e..6973a43664 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -60,14 +60,14 @@ void joy_close(void)
#define ROCKBOY_PAD_B BUTTON_OFF
#define ROCKBOY_PAD_START BUTTON_REC
#define ROCKBOY_PAD_SELECT BUTTON_SELECT
-#define ROCKBOY_QUIT BUTTON_MODE
+#define ROCKBOY_MENU BUTTON_MODE
#elif CONFIG_KEYPAD == RECORDER_PAD
#define ROCKBOY_PAD_A BUTTON_F1
#define ROCKBOY_PAD_B BUTTON_F2
#define ROCKBOY_PAD_START BUTTON_F3
#define ROCKBOY_PAD_SELECT BUTTON_PLAY
-#define ROCKBOY_QUIT BUTTON_OFF
+#define ROCKBOY_MENU BUTTON_OFF
#endif
@@ -115,9 +115,11 @@ void ev_poll(void)
ev.code=PAD_SELECT;
ev_postevent(&ev);
}
- if(pressed & ROCKBOY_QUIT) {
+ if(pressed & ROCKBOY_MENU) {
+ if (do_user_menu() == USER_MENU_QUIT) {
die("");
cleanshut=1;
+ }
}
}