From c8bd9129bf146c3c0bbacc744ab509709a004fd7 Mon Sep 17 00:00:00 2001 From: Martin Scarratt Date: Sun, 20 Aug 2006 21:33:40 +0000 Subject: Button action code for recording screen. Shouldnt make any noticable difference in recording screen button operation except for H300 I-River remote, which should now work as expected, -10 button = LCD off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10666 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-recorder.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'apps/keymaps/keymap-recorder.c') diff --git a/apps/keymaps/keymap-recorder.c b/apps/keymaps/keymap-recorder.c index 8cb6790fe7..72e04071a9 100644 --- a/apps/keymaps/keymap-recorder.c +++ b/apps/keymaps/keymap-recorder.c @@ -143,6 +143,18 @@ static const struct button_mapping button_context_pitchscreen[] = { LAST_ITEM_IN_LIST }; /* button_context_pitchcreen */ +const struct button_mapping button_context_recscreen[] = { + { ACTION_REC_PAUSE, BUTTON_PLAY, BUTTON_NONE }, + { ACTION_REC_F2, BUTTON_F2, BUTTON_NONE }, + { ACTION_REC_F3, BUTTON_F3, BUTTON_NONE }, + { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE }, + { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE }, + { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, + + LAST_ITEM_IN_LIST +}; /* button_context_recscreen */ + /***************************************************************************** * Remote control mappings *****************************************************************************/ @@ -212,6 +224,9 @@ const struct button_mapping* get_context_mapping( int context ) case CONTEXT_QUICKSCREEN: return button_context_quickscreen; + case CONTEXT_RECSCREEN: + return button_context_recscreen; + case CONTEXT_STD: case CONTEXT_LIST: case CONTEXT_MAINMENU: -- cgit v1.2.3