From 5e5bfabf6731758302a8ec15dc4f93109bf91d84 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 16 Aug 2006 13:25:45 +0000 Subject: * 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 --- apps/keymaps/keymap-recorder.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'apps/keymaps/keymap-recorder.c') diff --git a/apps/keymaps/keymap-recorder.c b/apps/keymaps/keymap-recorder.c index a28286936e..a0a0426d32 100644 --- a/apps/keymaps/keymap-recorder.c +++ b/apps/keymaps/keymap-recorder.c @@ -125,6 +125,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_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_ON, BUTTON_NONE }, + { ACTION_PS_EXIT, BUTTON_OFF, BUTTON_NONE }, + + LAST_ITEM_IN_LIST +}; /* button_context_pitchcreen */ + const struct button_mapping* get_context_mapping( int context ) { switch( context ) @@ -137,6 +152,8 @@ const struct button_mapping* get_context_mapping( int context ) case CONTEXT_YESNOSCREEN: return button_context_yesno; + case CONTEXT_PITCHSCREEN: + return button_context_pitchscreen; case CONTEXT_TREE: if (global_settings.hold_lr_for_scroll_in_list) -- cgit v1.2.3