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
|
@ -65,6 +65,8 @@ static struct plugin_api* rb; /* global api struct pointer */
|
|||
#define AST_FIRE BUTTON_SELECT
|
||||
#define AST_FIRE_REP BUTTON_SELECT | BUTTON_REPEAT
|
||||
|
||||
#define AST_RC_QUIT BUTTON_RC_STOP
|
||||
|
||||
#elif (CONFIG_KEYPAD == IAUDIO_X5_PAD)
|
||||
#define AST_PAUSE BUTTON_PLAY
|
||||
#define AST_QUIT BUTTON_POWER
|
||||
|
@ -1531,7 +1533,10 @@ enum plugin_status start_game(void)
|
|||
else if(game_state == PAUSE_MODE)
|
||||
game_state = PLAY_MODE;
|
||||
break;
|
||||
|
||||
|
||||
#ifdef AST_RC_QUIT
|
||||
case AST_RC_QUIT:
|
||||
#endif
|
||||
case(AST_QUIT):
|
||||
if(game_state == ATTRACT_MODE)
|
||||
return PLUGIN_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue