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-ondio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps/keymaps/keymap-ondio.c') diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c index 5476268065..57bdcc324a 100644 --- a/apps/keymaps/keymap-ondio.c +++ b/apps/keymaps/keymap-ondio.c @@ -127,6 +127,16 @@ const struct button_mapping button_context_pitchscreen[] = { LAST_ITEM_IN_LIST }; /* button_context_quickscreen */ +const struct button_mapping button_context_recscreen[] = { + { ACTION_REC_PAUSE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, + { 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 */ + const struct button_mapping* get_context_mapping( int context ) { switch( context ) @@ -153,6 +163,8 @@ const struct button_mapping* get_context_mapping( int context ) /* else fall through to CUSTOM|1 */ case CONTEXT_CUSTOM|1: return button_context_tree; + case CONTEXT_RECSCREEN: + return button_context_recscreen; case CONTEXT_LIST: case CONTEXT_MAINMENU: -- cgit v1.2.3