summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ifp7xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/keymaps/keymap-ifp7xx.c')
-rw-r--r--apps/keymaps/keymap-ifp7xx.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ifp7xx.c b/apps/keymaps/keymap-ifp7xx.c
index 5ffa71593c..b5d0fd7df0 100644
--- a/apps/keymaps/keymap-ifp7xx.c
+++ b/apps/keymaps/keymap-ifp7xx.c
@@ -134,6 +134,22 @@ const struct button_mapping button_context_pitchscreen[] = {
134 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) 134 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
135}; /* button_context_pitchcreen */ 135}; /* button_context_pitchcreen */
136 136
137const struct button_mapping button_context_keyboard[] = {
138 { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE },
139 { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
140 { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
141 { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
142 { ACTION_KBD_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT },
143 { ACTION_KBD_DONE, BUTTON_MODE, BUTTON_NONE },
144 { ACTION_KBD_ABORT, BUTTON_PLAY, BUTTON_NONE },
145 { ACTION_KBD_UP, BUTTON_UP, BUTTON_NONE },
146 { ACTION_KBD_UP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
147 { ACTION_KBD_DOWN, BUTTON_DOWN, BUTTON_NONE },
148 { ACTION_KBD_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
149
150 LAST_ITEM_IN_LIST
151}; /* button_context_keyboard */
152
137/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ 153/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
138const struct button_mapping* get_context_mapping(int context) 154const struct button_mapping* get_context_mapping(int context)
139{ 155{
@@ -158,6 +174,8 @@ const struct button_mapping* get_context_mapping(int context)
158 return button_context_quickscreen; 174 return button_context_quickscreen;
159 case CONTEXT_PITCHSCREEN: 175 case CONTEXT_PITCHSCREEN:
160 return button_context_pitchscreen; 176 return button_context_pitchscreen;
177 case CONTEXT_KEYBOARD:
178 return button_context_keyboard;
161 } 179 }
162 return button_context_standard; 180 return button_context_standard;
163} 181}