mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
|
@ -51,6 +51,10 @@ PLUGIN_HEADER
|
|||
#define DEMYSTIFY_REMOVE_POLYGON BUTTON_DOWN
|
||||
#define DEMYSTIFY_INCREASE_SPEED BUTTON_RIGHT
|
||||
#define DEMYSTIFY_DECREASE_SPEED BUTTON_LEFT
|
||||
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
||||
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||
#define DEMYSTIFY_RC_QUIT BUTTON_RC_STOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define DEFAULT_WAIT_TIME 3
|
||||
|
@ -315,6 +319,9 @@ int plugin_main(void)
|
|||
button = rb->button_get(false);
|
||||
switch(button)
|
||||
{
|
||||
#ifdef DEMYSTIFY_RC_QUIT
|
||||
case DEMYSTIFY_RC_QUIT :
|
||||
#endif
|
||||
case (DEMYSTIFY_QUIT):
|
||||
cleanup(NULL);
|
||||
return PLUGIN_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue