diff options
author | Martin Scarratt <mmmm@rockbox.org> | 2006-08-20 21:33:40 +0000 |
---|---|---|
committer | Martin Scarratt <mmmm@rockbox.org> | 2006-08-20 21:33:40 +0000 |
commit | c8bd9129bf146c3c0bbacc744ab509709a004fd7 (patch) | |
tree | ecf927b6f31c94f12e073c0b9fbd1a144ecd83d3 /apps/keymaps/keymap-ondio.c | |
parent | 7847dde8cf00838de8ff75b8398ffbb1921baf8b (diff) | |
download | rockbox-c8bd9129bf146c3c0bbacc744ab509709a004fd7.tar.gz rockbox-c8bd9129bf146c3c0bbacc744ab509709a004fd7.zip |
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
Diffstat (limited to 'apps/keymaps/keymap-ondio.c')
-rw-r--r-- | apps/keymaps/keymap-ondio.c | 12 |
1 files changed, 12 insertions, 0 deletions
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[] = { | |||
127 | LAST_ITEM_IN_LIST | 127 | LAST_ITEM_IN_LIST |
128 | }; /* button_context_quickscreen */ | 128 | }; /* button_context_quickscreen */ |
129 | 129 | ||
130 | const struct button_mapping button_context_recscreen[] = { | ||
131 | { ACTION_REC_PAUSE, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | ||
132 | { ACTION_SETTINGS_INC, BUTTON_RIGHT, BUTTON_NONE }, | ||
133 | { ACTION_SETTINGS_INC, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | ||
134 | { ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE }, | ||
135 | { ACTION_SETTINGS_DEC, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | ||
136 | |||
137 | LAST_ITEM_IN_LIST | ||
138 | }; /* button_context_recscreen */ | ||
139 | |||
130 | const struct button_mapping* get_context_mapping( int context ) | 140 | const struct button_mapping* get_context_mapping( int context ) |
131 | { | 141 | { |
132 | switch( context ) | 142 | switch( context ) |
@@ -153,6 +163,8 @@ const struct button_mapping* get_context_mapping( int context ) | |||
153 | /* else fall through to CUSTOM|1 */ | 163 | /* else fall through to CUSTOM|1 */ |
154 | case CONTEXT_CUSTOM|1: | 164 | case CONTEXT_CUSTOM|1: |
155 | return button_context_tree; | 165 | return button_context_tree; |
166 | case CONTEXT_RECSCREEN: | ||
167 | return button_context_recscreen; | ||
156 | 168 | ||
157 | case CONTEXT_LIST: | 169 | case CONTEXT_LIST: |
158 | case CONTEXT_MAINMENU: | 170 | case CONTEXT_MAINMENU: |