FS#13195: rocker: Improved root menu keymap (Howard Richardson)
This patch addresses a keymapping anomaly on the Rocker. Currently the Power button when pressed inside a sub-menu will return you to the root of the menu. However when pressed again it returns you to the sub-menu you were in previously. This is at odds with how other ports work and makes it difficult to return to the WPS without manually selecting it on the root menu. This patch copies the behaviour of the home button on the Sansa Clip+. Pressing it once will exit a sub-menu and bring you back to the root menu. Pressing it again takes you to the WPS. No functionality is lost or covered up by making this reassignment. Change-Id: I17789457d49b087a2b4c75f4490ec722d9479a9b
This commit is contained in:
parent
2da6766f75
commit
9e674c712f
2 changed files with 8 additions and 0 deletions
|
@ -54,6 +54,12 @@ static const struct button_mapping button_context_standard[] = {
|
|||
}; /* button_context_standard */
|
||||
|
||||
|
||||
static const struct button_mapping button_context_mainmenu[] = {
|
||||
{ ACTION_TREE_WPS, BUTTON_POWER, BUTTON_NONE },
|
||||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_TREE),
|
||||
}; /* button_context_mainmenu as with sansa clip mapping - "back" button returns you to WPS */
|
||||
|
||||
static const struct button_mapping button_context_wps[] = {
|
||||
/* { ACTION_WPS_BROWSE, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, */
|
||||
{ ACTION_WPS_PLAY, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT },
|
||||
|
@ -223,6 +229,7 @@ const struct button_mapping* get_context_mapping(int context)
|
|||
return button_context_wps;
|
||||
|
||||
case CONTEXT_MAINMENU:
|
||||
return button_context_mainmenu;
|
||||
case CONTEXT_TREE:
|
||||
case CONTEXT_LIST:
|
||||
return button_context_list;
|
||||
|
|
|
@ -690,6 +690,7 @@ Johannes König
|
|||
Alexander Drammen
|
||||
Kei Miyamoto
|
||||
James D. Smith
|
||||
Howard Richardson
|
||||
|
||||
The libmad team
|
||||
The wavpack team
|
||||
|
|
Loading…
Reference in a new issue