summaryrefslogtreecommitdiffstats
path: root/apps/keymaps/keymap-ipod.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-08-16 13:25:45 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-08-16 13:25:45 +0000
commit5e5bfabf6731758302a8ec15dc4f93109bf91d84 (patch)
treec539ebce3ac1aef9081201dcc52956704458216e /apps/keymaps/keymap-ipod.c
parent75765df6df134c718189125073806bfb4a1512b1 (diff)
downloadrockbox-5e5bfabf6731758302a8ec15dc4f93109bf91d84.tar.gz
rockbox-5e5bfabf6731758302a8ec15dc4f93109bf91d84.zip
* fixed the pitch screen key mappings for all targets, targets require a
mapping to access the screen from the wps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-ipod.c')
-rw-r--r--apps/keymaps/keymap-ipod.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-ipod.c b/apps/keymaps/keymap-ipod.c
index 2beb428b6b..96e2f20e9e 100644
--- a/apps/keymaps/keymap-ipod.c
+++ b/apps/keymaps/keymap-ipod.c
@@ -129,6 +129,21 @@ const struct button_mapping button_context_quickscreen[] = {
LAST_ITEM_IN_LIST
}; /* button_context_quickscreen */
+const struct button_mapping button_context_pitchscreen[] = {
+ { ACTION_PS_INC_SMALL, BUTTON_SCROLL_FWD, BUTTON_NONE },
+ { ACTION_PS_INC_BIG, BUTTON_SCROLL_FWD|BUTTON_REPEAT, BUTTON_SCROLL_FWD },
+ { ACTION_PS_DEC_SMALL, BUTTON_SCROLL_BACK, BUTTON_NONE },
+ { ACTION_PS_DEC_BIG, BUTTON_SCROLL_BACK|BUTTON_REPEAT, BUTTON_SCROLL_BACK },
+ { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE },
+ { ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE },
+ { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
+ { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE },
+ { ACTION_PS_RESET, BUTTON_MENU, BUTTON_NONE },
+ { ACTION_PS_EXIT, BUTTON_SELECT, BUTTON_NONE },
+
+ LAST_ITEM_IN_LIST
+}; /* button_context_pitchscreen */
+
/* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */
const struct button_mapping* get_context_mapping(int context)
{
@@ -158,6 +173,8 @@ const struct button_mapping* get_context_mapping(int context)
return button_context_bmark;
case CONTEXT_QUICKSCREEN:
return button_context_quickscreen;
+ case CONTEXT_PITCHSCREEN:
+ return button_context_pitchscreen;
default:
return button_context_standard;
}