summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-23 00:29:55 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-23 00:30:40 +0200
commitfbc4ef782273020f92604c5e2a2b27d0b690d251 (patch)
treee38ce3aba05ddd8a7c9173968211e305e9f48795
parentb63b330775b53fd3045d09a197ef7fbcde23f06f (diff)
downloadrockbox-fbc4ef782273020f92604c5e2a2b27d0b690d251.tar.gz
rockbox-fbc4ef782273020f92604c5e2a2b27d0b690d251.zip
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
-rw-r--r--apps/keymaps/keymap-zenxfi2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/keymaps/keymap-zenxfi2.c b/apps/keymaps/keymap-zenxfi2.c
index 7bffa10a33..2f8d503b78 100644
--- a/apps/keymaps/keymap-zenxfi2.c
+++ b/apps/keymaps/keymap-zenxfi2.c
@@ -44,6 +44,7 @@ static const struct button_mapping button_context_standard[] = {
44 44
45 { ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU }, 45 { ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
46 46
47
47 LAST_ITEM_IN_LIST 48 LAST_ITEM_IN_LIST
48}; /* button_context_standard */ 49}; /* button_context_standard */
49 50
@@ -51,8 +52,9 @@ static const struct button_mapping button_context_standard[] = {
51static const struct button_mapping button_context_wps[] = { 52static const struct button_mapping button_context_wps[] = {
52 { ACTION_WPS_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, 53 { ACTION_WPS_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
53 { ACTION_WPS_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU }, 54 { ACTION_WPS_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
55 { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE },
54 56
55 LAST_ITEM_IN_LIST 57 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
56}; /* button_context_wps */ 58}; /* button_context_wps */
57 59
58static const struct button_mapping button_context_list[] = { 60static const struct button_mapping button_context_list[] = {
@@ -128,7 +130,7 @@ static const struct button_mapping button_context_keyboard[] = {
128static const struct button_mapping button_context_radio[] = { 130static const struct button_mapping button_context_radio[] = {
129 { ACTION_FM_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_NONE }, 131 { ACTION_FM_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_NONE },
130 { ACTION_FM_PRESET, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, 132 { ACTION_FM_PRESET, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
131 { ACTION_FM_STOP, BUTTON_POWER, BUTTON_NONE }, 133 { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE },
132 134
133 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) 135 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
134}; /* button_context_radio */ 136}; /* button_context_radio */