summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-x5.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-08-15 13:23:10 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-08-15 13:23:10 +0000
commitfc36c0e22a5e9eb7741a9e01242001ba6901bba5 (patch)
tree55fc753ad3ae96634b95c199efe5a35585e7dc67 /apps/keymaps/keymap-x5.c
parent0d042870730c6846a4eae2ac6be3ffa292cd88d5 (diff)
Added quickscreen keys for x5 and ipod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10587 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-x5.c')
-rw-r--r--apps/keymaps/keymap-x5.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-x5.c b/apps/keymaps/keymap-x5.c
index 33c1946e6c..666ce7819a 100644
--- a/apps/keymaps/keymap-x5.c
+++ b/apps/keymaps/keymap-x5.c
@@ -110,6 +110,20 @@ struct button_mapping button_context_yesno[] = {
LAST_ITEM_IN_LIST
}; /* button_context_settings_yesno */
+struct button_mapping button_context_quickscreen[] = {
+ { ACTION_QS_DOWNINV, BUTTON_UP, BUTTON_NONE },
+ { ACTION_QS_DOWNINV, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP },
+ { ACTION_QS_DOWN, BUTTON_DOWN, BUTTON_NONE },
+ { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN },
+ { ACTION_QS_LEFT, BUTTON_LEFT, BUTTON_NONE },
+ { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_LEFT },
+ { ACTION_QS_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
+ { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_RIGHT },
+ { ACTION_STD_CANCEL, BUTTON_REC, BUTTON_NONE },
+
+ LAST_ITEM_IN_LIST
+}; /* button_context_quickscreen */
+
struct button_mapping* get_context_mapping( int context )
{
switch( context )
@@ -132,7 +146,8 @@ struct button_mapping* get_context_mapping( int context )
/* else fall through to CUSTOM|1 */
case CONTEXT_CUSTOM|1:
return button_context_tree;
-
+ case CONTEXT_QUICKSCREEN:
+ return button_context_quickscreen;
case CONTEXT_LIST:
case CONTEXT_MAINMENU:
default: