forked from len0rd/rockbox
Rockblox: make sure the new restart combo on Player and Ondio does not interfere with the usual 'quit', even when pressing the Stop (or Off) button first.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20984 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e631d1fb28
commit
f772673572
1 changed files with 8 additions and 2 deletions
|
@ -79,7 +79,8 @@ PLUGIN_HEADER
|
|||
|
||||
#elif CONFIG_KEYPAD == PLAYER_PAD
|
||||
|
||||
#define ROCKBLOX_OFF BUTTON_STOP
|
||||
#define ROCKBLOX_OFF_PRE BUTTON_STOP
|
||||
#define ROCKBLOX_OFF (BUTTON_STOP|BUTTON_REL)
|
||||
#define ROCKBLOX_ROTATE_RIGHT BUTTON_PLAY
|
||||
#define ROCKBLOX_ROTATE_LEFT (BUTTON_ON|BUTTON_PLAY)
|
||||
#define ROCKBLOX_DOWN BUTTON_MENU
|
||||
|
@ -91,7 +92,8 @@ PLUGIN_HEADER
|
|||
|
||||
#elif CONFIG_KEYPAD == ONDIO_PAD
|
||||
|
||||
#define ROCKBLOX_OFF BUTTON_OFF
|
||||
#define ROCKBLOX_OFF_PRE BUTTON_OFF
|
||||
#define ROCKBLOX_OFF (BUTTON_OFF|BUTTON_REL)
|
||||
#define ROCKBLOX_ROTATE_RIGHT BUTTON_UP
|
||||
#define ROCKBLOX_ROTATE_LEFT (BUTTON_MENU|BUTTON_UP)
|
||||
#define ROCKBLOX_DOWN BUTTON_DOWN
|
||||
|
@ -1193,6 +1195,10 @@ static int rockblox_loop (void)
|
|||
case ROCKBLOX_RC_OFF:
|
||||
#endif
|
||||
case ROCKBLOX_OFF:
|
||||
#ifdef ROCKBLOX_OFF_PRE
|
||||
if (lastbutton != ROCKBLOX_OFF_PRE)
|
||||
break;
|
||||
#endif
|
||||
return PLUGIN_OK;
|
||||
|
||||
#if defined(ROCKBLOX_ROTATE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue