summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-agptekrocker.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-agptekrocker.c')
-rw-r--r--apps/keymaps/keymap-agptekrocker.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/keymaps/keymap-agptekrocker.c b/apps/keymaps/keymap-agptekrocker.c
index b27cb886b9..4d7139ffd5 100644
--- a/apps/keymaps/keymap-agptekrocker.c
+++ b/apps/keymaps/keymap-agptekrocker.c
@@ -22,7 +22,7 @@
22#include "action.h" 22#include "action.h"
23#include "button.h" 23#include "button.h"
24#include "settings.h" 24#include "settings.h"
25 25#define BTN_VOL_COMBO (BUTTON_VOLUP | BUTTON_VOLDOWN)
26/* {Action Code, Button code, Prereq button code } */ 26/* {Action Code, Button code, Prereq button code } */
27 27
28/* 28/*
@@ -84,6 +84,7 @@ static const struct button_mapping button_context_wps[] = {
84 */ 84 */
85 85
86 { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE }, 86 { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE },
87 { ACTION_WPS_HOTKEY, BTN_VOL_COMBO|BUTTON_REL, BTN_VOL_COMBO},
87 88
88 LAST_ITEM_IN_LIST 89 LAST_ITEM_IN_LIST
89}; /* button_context_wps */ 90}; /* button_context_wps */
@@ -114,8 +115,9 @@ static const struct button_mapping button_context_list[] = {
114 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) 115 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
115}; /* button_context_list */ 116}; /* button_context_list */
116 117
117#if 0 118
118static const struct button_mapping button_context_tree[] = { 119static const struct button_mapping button_context_tree[] = {
120 { ACTION_TREE_HOTKEY, BTN_VOL_COMBO|BUTTON_REL, BTN_VOL_COMBO},
119/* ACTION_TREE_ROOT_INIT, 121/* ACTION_TREE_ROOT_INIT,
120 * ACTION_TREE_PGLEFT, optional 122 * ACTION_TREE_PGLEFT, optional
121 * ACTION_TREE_PGRIGHT, optional 123 * ACTION_TREE_PGRIGHT, optional
@@ -129,7 +131,7 @@ static const struct button_mapping button_context_tree[] = {
129 */ 131 */
130 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), 132 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST),
131}; /* button_context_tree */ 133}; /* button_context_tree */
132#endif 134
133 135
134static const struct button_mapping button_context_yesno[] = { 136static const struct button_mapping button_context_yesno[] = {
135 { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, 137 { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE },
@@ -230,6 +232,7 @@ const struct button_mapping* get_context_mapping(int context)
230 case CONTEXT_MAINMENU: 232 case CONTEXT_MAINMENU:
231 return button_context_mainmenu; 233 return button_context_mainmenu;
232 case CONTEXT_TREE: 234 case CONTEXT_TREE:
235 return button_context_tree;
233 case CONTEXT_LIST: 236 case CONTEXT_LIST:
234 return button_context_list; 237 return button_context_list;
235 238