summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-ondio.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-ondio.c
parent75765df6df134c718189125073806bfb4a1512b1 (diff)
* 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-ondio.c')
-rw-r--r--apps/keymaps/keymap-ondio.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c
index a82d6eb5fa..7ca7d20c83 100644
--- a/apps/keymaps/keymap-ondio.c
+++ b/apps/keymaps/keymap-ondio.c
@@ -111,6 +111,21 @@ struct button_mapping button_context_bmark[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS),
}; /* button_context_settings_bmark */
+const struct button_mapping button_context_pitchscreen[] = {
+ { ACTION_PS_INC_SMALL, BUTTON_UP, BUTTON_NONE },
+ { ACTION_PS_INC_BIG, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP },
+ { ACTION_PS_DEC_SMALL, BUTTON_DOWN, BUTTON_NONE },
+ { ACTION_PS_DEC_BIG, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN },
+ { 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_OFF, BUTTON_NONE },
+
+ LAST_ITEM_IN_LIST
+}; /* button_context_quickscreen */
+
const struct button_mapping* get_context_mapping( int context )
{
switch( context )
@@ -129,7 +144,8 @@ const struct button_mapping* get_context_mapping( int context )
case CONTEXT_BOOKMARKSCREEN:
return button_context_bmark;
-
+ case CONTEXT_PITCHSCREEN:
+ return button_context_pitchscreen;
case CONTEXT_TREE:
if (global_settings.hold_lr_for_scroll_in_list)
return button_context_tree_scroll_lr;