forked from len0rd/rockbox
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
This commit is contained in:
parent
7bbf53eae5
commit
0e027bd90c
39 changed files with 276 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue