1
0
Fork 0
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:
Kevin Ferrare 2006-06-30 16:43:47 +00:00
parent 7bbf53eae5
commit 0e027bd90c
39 changed files with 276 additions and 26 deletions

View file

@ -67,6 +67,9 @@ static int plasma_frequency;
#define PLASMA_QUIT BUTTON_OFF
#define PLASMA_INCREASE_FREQUENCY BUTTON_UP
#define PLASMA_DECREASE_FREQUENCY BUTTON_DOWN
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
#define PLASMA_RC_QUIT BUTTON_RC_STOP
#endif
#endif
#ifdef HAVE_LCD_COLOR
@ -283,6 +286,9 @@ int main(void)
switch(button)
{
#ifdef PLASMA_RC_QUIT
case PLASMA_RC_QUIT:
#endif
case(PLASMA_QUIT):
cleanup(NULL);
return PLUGIN_OK;