summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ondio.c
diff options
context:
space:
mode:
authorMartin Scarratt <mmmm@rockbox.org>2006-08-22 13:21:13 +0000
committerMartin Scarratt <mmmm@rockbox.org>2006-08-22 13:21:13 +0000
commit0ba2204beb8f97ce71133bf74fdc24b40f81407c (patch)
tree9ef69b04d5d130bc52122e9833c09214f90b09c9 /apps/keymaps/keymap-ondio.c
parentaf95a013641b4c0919bc1cf9f907a3149f513da0 (diff)
Button action code for the Virtual keyboard. Extra buttons for H1xx remote: Vol-+ Cursor Left/Right. H3xx remote:-10/+10 Cursor Left/Right.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10694 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-ondio.c')
-rw-r--r--apps/keymaps/keymap-ondio.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c
index 1a1411093e..9af3b12cab 100644
--- a/apps/keymaps/keymap-ondio.c
+++ b/apps/keymaps/keymap-ondio.c
@@ -137,6 +137,22 @@ const struct button_mapping button_context_recscreen[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
}; /* button_context_recscreen */
+const struct button_mapping button_context_keyboard[] = {
+ { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE },
+ { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
+ { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_SELECT, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
+ { ACTION_KBD_DONE, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_ABORT, BUTTON_OFF, BUTTON_NONE },
+ { ACTION_KBD_UP, BUTTON_UP, BUTTON_NONE },
+ { ACTION_KBD_UP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_DOWN, BUTTON_DOWN, BUTTON_NONE },
+ { ACTION_KBD_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
+
+ LAST_ITEM_IN_LIST
+}; /* button_context_keyboard */
+
const struct button_mapping* get_context_mapping( int context )
{
switch( context )
@@ -165,7 +181,9 @@ const struct button_mapping* get_context_mapping( int context )
return button_context_tree;
case CONTEXT_RECSCREEN:
return button_context_recscreen;
-
+ case CONTEXT_KEYBOARD:
+ return button_context_keyboard;
+
case CONTEXT_LIST:
case CONTEXT_MAINMENU:
default: