diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-16 13:25:45 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-08-16 13:25:45 +0000 |
commit | 5e5bfabf6731758302a8ec15dc4f93109bf91d84 (patch) | |
tree | c539ebce3ac1aef9081201dcc52956704458216e /apps/keymaps/keymap-ipod.c | |
parent | 75765df6df134c718189125073806bfb4a1512b1 (diff) | |
download | rockbox-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.c | 17 |
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[] = { | |||
129 | LAST_ITEM_IN_LIST | 129 | LAST_ITEM_IN_LIST |
130 | }; /* button_context_quickscreen */ | 130 | }; /* button_context_quickscreen */ |
131 | 131 | ||
132 | const struct button_mapping button_context_pitchscreen[] = { | ||
133 | { ACTION_PS_INC_SMALL, BUTTON_SCROLL_FWD, BUTTON_NONE }, | ||
134 | { ACTION_PS_INC_BIG, BUTTON_SCROLL_FWD|BUTTON_REPEAT, BUTTON_SCROLL_FWD }, | ||
135 | { ACTION_PS_DEC_SMALL, BUTTON_SCROLL_BACK, BUTTON_NONE }, | ||
136 | { ACTION_PS_DEC_BIG, BUTTON_SCROLL_BACK|BUTTON_REPEAT, BUTTON_SCROLL_BACK }, | ||
137 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE }, | ||
138 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, | ||
139 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | ||
140 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, | ||
141 | { ACTION_PS_RESET, BUTTON_MENU, BUTTON_NONE }, | ||
142 | { ACTION_PS_EXIT, BUTTON_SELECT, BUTTON_NONE }, | ||
143 | |||
144 | LAST_ITEM_IN_LIST | ||
145 | }; /* button_context_pitchscreen */ | ||
146 | |||
132 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ | 147 | /* get_context_mapping returns a pointer to one of the above defined arrays depending on the context */ |
133 | const struct button_mapping* get_context_mapping(int context) | 148 | const struct button_mapping* get_context_mapping(int context) |
134 | { | 149 | { |
@@ -158,6 +173,8 @@ const struct button_mapping* get_context_mapping(int context) | |||
158 | return button_context_bmark; | 173 | return button_context_bmark; |
159 | case CONTEXT_QUICKSCREEN: | 174 | case CONTEXT_QUICKSCREEN: |
160 | return button_context_quickscreen; | 175 | return button_context_quickscreen; |
176 | case CONTEXT_PITCHSCREEN: | ||
177 | return button_context_pitchscreen; | ||
161 | default: | 178 | default: |
162 | return button_context_standard; | 179 | return button_context_standard; |
163 | } | 180 | } |