summaryrefslogtreecommitdiff
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
47#define SNOW_QUIT BUTTON_A 47#define SNOW_QUIT BUTTON_A
48#else 48#else
49#define SNOW_QUIT BUTTON_OFF 49#define SNOW_QUIT BUTTON_OFF
50#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
51#define SNOW_RC_QUIT BUTTON_RC_STOP
52#endif
50#endif 53#endif
51 54
52static short particles[NUM_PARTICLES][2]; 55static short particles[NUM_PARTICLES][2];
@@ -189,7 +192,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
189 192
190 button = rb->button_get(false); 193 button = rb->button_get(false);
191 194
192 if (button == SNOW_QUIT) 195 if (button == SNOW_QUIT
196#ifdef SNOW_RC_QUIT
197 || button == SNOW_RC_QUIT
198#endif
199 )
193 { 200 {
194#ifdef HAVE_LCD_CHARCELLS 201#ifdef HAVE_LCD_CHARCELLS
195 pgfx_release(); 202 pgfx_release();