summaryrefslogtreecommitdiff
path: root/apps/plugins/oscilloscope.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
committerKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
commit0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch)
treed21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/oscilloscope.c
parent7bbf53eae502417e6e0fbb204e319310f28f33ad (diff)
downloadrockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.gz
rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.zip
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/oscilloscope.c')
-rw-r--r--apps/plugins/oscilloscope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index 3c20d39500..bd8b949ec6 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -62,6 +62,7 @@ PLUGIN_HEADER
62#define OSCILLOSCOPE_VOL_UP BUTTON_UP 62#define OSCILLOSCOPE_VOL_UP BUTTON_UP
63#define OSCILLOSCOPE_VOL_DOWN BUTTON_DOWN 63#define OSCILLOSCOPE_VOL_DOWN BUTTON_DOWN
64 64
65#define OSCILLOSCOPE_RC_QUIT BUTTON_RC_STOP
65#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) 66#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
66#define OSCILLOSCOPE_QUIT (BUTTON_SELECT | BUTTON_MENU) 67#define OSCILLOSCOPE_QUIT (BUTTON_SELECT | BUTTON_MENU)
67#define OSCILLOSCOPE_DRAWMODE (BUTTON_SELECT | BUTTON_PLAY) 68#define OSCILLOSCOPE_DRAWMODE (BUTTON_SELECT | BUTTON_PLAY)
@@ -583,6 +584,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
583 button = rb->button_get(paused); 584 button = rb->button_get(paused);
584 switch (button) 585 switch (button)
585 { 586 {
587#ifdef OSCILLOSCOPE_RC_QUIT
588 case OSCILLOSCOPE_RC_QUIT:
589#endif
586 case OSCILLOSCOPE_QUIT: 590 case OSCILLOSCOPE_QUIT:
587 exit = true; 591 exit = true;
588 break; 592 break;