summaryrefslogtreecommitdiffstats
path: root/apps/plugins/snow.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/snow.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/snow.c')
-rw-r--r--apps/plugins/snow.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c
index 80429326bf..bde8be883c 100644
--- a/apps/plugins/snow.c
+++ b/apps/plugins/snow.c
@@ -47,6 +47,9 @@ PLUGIN_HEADER
#define SNOW_QUIT BUTTON_A
#else
#define SNOW_QUIT BUTTON_OFF
+#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
+#define SNOW_RC_QUIT BUTTON_RC_STOP
+#endif
#endif
static short particles[NUM_PARTICLES][2];
@@ -189,7 +192,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
button = rb->button_get(false);
- if (button == SNOW_QUIT)
+ if (button == SNOW_QUIT
+#ifdef SNOW_RC_QUIT
+ || button == SNOW_RC_QUIT
+#endif
+ )
{
#ifdef HAVE_LCD_CHARCELLS
pgfx_release();