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
|
@ -73,6 +73,8 @@ PLUGIN_HEADER
|
|||
#define CB_RESTART BUTTON_REC
|
||||
#define CB_QUIT BUTTON_OFF
|
||||
|
||||
#define CB_RC_QUIT BUTTON_RC_STOP
|
||||
|
||||
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
||||
#define CB_SELECT BUTTON_SELECT
|
||||
#define CB_UP BUTTON_UP
|
||||
|
@ -280,6 +282,9 @@ void cb_wt_callback ( void ) {
|
|||
wt_command = COMMAND_NOP;
|
||||
button = rb->button_get(false);
|
||||
switch (button) {
|
||||
#ifdef CB_RC_QUIT
|
||||
case CB_RC_QUIT:
|
||||
#endif
|
||||
case CB_QUIT:
|
||||
wt_command = COMMAND_QUIT;
|
||||
timeout = true;
|
||||
|
@ -486,6 +491,9 @@ struct cb_command cb_getcommand (void) {
|
|||
while ( true ) {
|
||||
button = rb->button_get(true);
|
||||
switch (button) {
|
||||
#ifdef CB_RC_QUIT
|
||||
case CB_RC_QUIT:
|
||||
#endif
|
||||
case CB_QUIT:
|
||||
result.type = COMMAND_QUIT;
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue