diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
| commit | 0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch) | |
| tree | d21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/dice.c | |
| parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) | |
| download | rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.zip rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.gz rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.bz2 rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.xz | |
To avoid having to use the main unit when accidentally launching a plugin from the remote, plugins now support remote quit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/dice.c')
| -rw-r--r-- | apps/plugins/dice.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c index 7d4745e..c20b385 100644 --- a/apps/plugins/dice.c +++ b/apps/plugins/dice.c @@ -87,6 +87,8 @@ use stop to exit #define DICE_BUTTON_LEFT BUTTON_LEFT #define DICE_BUTTON_RIGHT BUTTON_RIGHT +#define DICE_BUTTON_RC_OFF BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) #define DICE_BUTTON_UP BUTTON_SCROLL_FWD #define DICE_BUTTON_DOWN BUTTON_SCROLL_BACK @@ -205,7 +207,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { print_dice(dice, total); } break; - +#ifdef DICE_BUTTON_RC_OFF + case DICE_BUTTON_RC_OFF: +#endif case DICE_BUTTON_OFF: selected = EXIT; break; |