summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-07 07:41:47 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-07 07:41:47 +0000
commitd17a38327d6414ad450a8056a648ac9005535ef2 (patch)
tree183705f3ec0bdaef0d4c59d25cdbb0467a83d313
parentd0a7cf03e146607ab5b9713d6c85bb8707b88ef5 (diff)
X5/M5: Add a remote keymap for the keyboard because there was none.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12661 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/keymaps/keymap-x5.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-x5.c b/apps/keymaps/keymap-x5.c
index 06e6b252d0..a817b343ea 100644
--- a/apps/keymaps/keymap-x5.c
+++ b/apps/keymaps/keymap-x5.c
@@ -114,7 +114,23 @@ static const struct button_mapping button_context_keyboard[] = {
LAST_ITEM_IN_LIST
}; /* button_context_keyboard */
-/* Main Menu Context Menu **/
+static const struct button_mapping remote_button_context_keyboard[] = {
+ { ACTION_KBD_LEFT, BUTTON_RC_REW, BUTTON_NONE },
+ { ACTION_KBD_LEFT, BUTTON_RC_REW|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_RIGHT, BUTTON_RC_FF, BUTTON_NONE },
+ { ACTION_KBD_RIGHT, BUTTON_RC_FF|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_SELECT_REM, BUTTON_RC_REC|BUTTON_REL, BUTTON_NONE },
+ { ACTION_KBD_DONE, BUTTON_RC_PLAY|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_ABORT, BUTTON_RC_MODE, BUTTON_NONE },
+ { ACTION_KBD_UP, BUTTON_RC_VOL_DOWN, BUTTON_NONE },
+ { ACTION_KBD_UP, BUTTON_RC_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE },
+ { ACTION_KBD_DOWN, BUTTON_RC_VOL_UP, BUTTON_NONE },
+ { ACTION_KBD_DOWN, BUTTON_RC_VOL_UP|BUTTON_REPEAT, BUTTON_NONE },
+
+ LAST_ITEM_IN_LIST
+}; /* button_context_keyboard_h100remote */
+
+/** Main Menu Context Menu **/
static const struct button_mapping button_context_mainmenu[] = {
{ ACTION_NONE, BUTTON_POWER, BUTTON_NONE },
{ ACTION_MENU_WPS, BUTTON_PLAY, BUTTON_NONE },
@@ -347,6 +363,9 @@ static const struct button_mapping* get_context_mapping_remote( int context )
return remote_button_context_standard;
/* remote contexts with special mapping */
+ case CONTEXT_KEYBOARD:
+ return remote_button_context_keyboard;
+
case CONTEXT_MAINMENU:
return remote_button_context_mainmenu;