diff options
Diffstat (limited to 'apps/keymaps/keymap-ipod.c')
-rw-r--r-- | apps/keymaps/keymap-ipod.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c index 895691d5bc..b41a91afdf 100644 --- a/apps/keymaps/keymap-ipod.c +++ b/apps/keymaps/keymap-ipod.c | |||
@@ -146,6 +146,20 @@ const struct button_mapping button_context_pitchscreen[] = { | |||
146 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) | 146 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) |
147 | }; /* button_context_pitchscreen */ | 147 | }; /* button_context_pitchscreen */ |
148 | 148 | ||
149 | const struct button_mapping button_context_keyboard[] = { | ||
150 | { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE }, | ||
151 | { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | ||
152 | { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | ||
153 | { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | ||
154 | { ACTION_KBD_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, | ||
155 | { ACTION_KBD_DONE, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_NONE }, | ||
156 | { ACTION_KBD_ABORT, BUTTON_MENU, BUTTON_NONE }, | ||
157 | { ACTION_KBD_UP, BUTTON_SCROLL_BACK, BUTTON_NONE }, | ||
158 | { ACTION_KBD_DOWN, BUTTON_SCROLL_FWD, BUTTON_NONE }, | ||
159 | |||
160 | LAST_ITEM_IN_LIST | ||
161 | }; /* button_context_keyboard */ | ||
162 | |||
149 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ | 163 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ |
150 | const struct button_mapping* get_context_mapping(int context) | 164 | const struct button_mapping* get_context_mapping(int context) |
151 | { | 165 | { |
@@ -180,6 +194,8 @@ const struct button_mapping* get_context_mapping(int context) | |||
180 | return button_context_quickscreen; | 194 | return button_context_quickscreen; |
181 | case CONTEXT_PITCHSCREEN: | 195 | case CONTEXT_PITCHSCREEN: |
182 | return button_context_pitchscreen; | 196 | return button_context_pitchscreen; |
197 | case CONTEXT_KEYBOARD: | ||
198 | return button_context_keyboard; | ||
183 | default: | 199 | default: |
184 | return button_context_standard; | 200 | return button_context_standard; |
185 | } | 201 | } |