mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
zenxfi2: rework keymap to add softlock
Map power button to soft key lock in WPS and radio screen, also correct fallback of WPS. Change-Id: If257e4b4f9f37848ba9f81dc2e8b52f020d4cde0
This commit is contained in:
parent
b63b330775
commit
fbc4ef7822
1 changed files with 4 additions and 2 deletions
|
|
@ -44,6 +44,7 @@ static const struct button_mapping button_context_standard[] = {
|
||||||
|
|
||||||
{ ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
|
{ ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
|
||||||
|
|
||||||
|
|
||||||
LAST_ITEM_IN_LIST
|
LAST_ITEM_IN_LIST
|
||||||
}; /* button_context_standard */
|
}; /* button_context_standard */
|
||||||
|
|
||||||
|
|
@ -51,8 +52,9 @@ static const struct button_mapping button_context_standard[] = {
|
||||||
static const struct button_mapping button_context_wps[] = {
|
static const struct button_mapping button_context_wps[] = {
|
||||||
{ ACTION_WPS_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
|
{ ACTION_WPS_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
|
||||||
{ ACTION_WPS_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
|
{ ACTION_WPS_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
|
||||||
|
{ ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE },
|
||||||
|
|
||||||
LAST_ITEM_IN_LIST
|
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||||
}; /* button_context_wps */
|
}; /* button_context_wps */
|
||||||
|
|
||||||
static const struct button_mapping button_context_list[] = {
|
static const struct button_mapping button_context_list[] = {
|
||||||
|
|
@ -128,7 +130,7 @@ static const struct button_mapping button_context_keyboard[] = {
|
||||||
static const struct button_mapping button_context_radio[] = {
|
static const struct button_mapping button_context_radio[] = {
|
||||||
{ ACTION_FM_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_NONE },
|
{ ACTION_FM_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_NONE },
|
||||||
{ ACTION_FM_PRESET, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
|
{ ACTION_FM_PRESET, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
|
||||||
{ ACTION_FM_STOP, BUTTON_POWER, BUTTON_NONE },
|
{ ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE },
|
||||||
|
|
||||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
|
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
|
||||||
}; /* button_context_radio */
|
}; /* button_context_radio */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue