summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-x5.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-04-08 01:33:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-04-08 01:33:01 +0000
commita053e58894292e1f12e4af578b9948da9cbdf76c (patch)
treed33f0888cb551dff27088c872065f338f3648f04 /apps/keymaps/keymap-x5.c
parenteef96946e1e962473e9049005eec2b2d0b2f8463 (diff)
downloadrockbox-a053e58894292e1f12e4af578b9948da9cbdf76c.tar.gz
rockbox-a053e58894292e1f12e4af578b9948da9cbdf76c.zip
minor actions cleanup:
- CONTEXT_MAINMENU is not actually needed, use CONTEXT_TREE which does the same actions - (gigabeat) use vol+/- in the lists to control volume (every list!) (FS#6982 in a better way) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13062 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-x5.c')
-rw-r--r--apps/keymaps/keymap-x5.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/keymaps/keymap-x5.c b/apps/keymaps/keymap-x5.c
index 1c88244053..b637e1ddd1 100644
--- a/apps/keymaps/keymap-x5.c
+++ b/apps/keymaps/keymap-x5.c
@@ -131,13 +131,6 @@ static const struct button_mapping remote_button_context_keyboard[] = {
131 LAST_ITEM_IN_LIST 131 LAST_ITEM_IN_LIST
132}; /* button_context_keyboard_h100remote */ 132}; /* button_context_keyboard_h100remote */
133 133
134/** Main Menu Context Menu **/
135static const struct button_mapping button_context_mainmenu[] = {
136 { ACTION_NONE, BUTTON_POWER, BUTTON_NONE },
137 { ACTION_MENU_WPS, BUTTON_PLAY, BUTTON_NONE },
138 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
139}; /* button_context_mainmenu */
140
141static const struct button_mapping remote_button_context_mainmenu[] = { 134static const struct button_mapping remote_button_context_mainmenu[] = {
142 { ACTION_STD_CANCEL, BUTTON_RC_VOL_DOWN, BUTTON_NONE }, 135 { ACTION_STD_CANCEL, BUTTON_RC_VOL_DOWN, BUTTON_NONE },
143 { ACTION_STD_OK, BUTTON_RC_VOL_UP, BUTTON_NONE }, 136 { ACTION_STD_OK, BUTTON_RC_VOL_UP, BUTTON_NONE },
@@ -412,8 +405,6 @@ const struct button_mapping* get_context_mapping( int context )
412 case CONTEXT_KEYBOARD: 405 case CONTEXT_KEYBOARD:
413 return button_context_keyboard; 406 return button_context_keyboard;
414 407
415 case CONTEXT_MAINMENU:
416 return button_context_mainmenu;
417 408
418 case CONTEXT_PITCHSCREEN: 409 case CONTEXT_PITCHSCREEN:
419 return button_context_pitchscreen; 410 return button_context_pitchscreen;
@@ -435,6 +426,7 @@ const struct button_mapping* get_context_mapping( int context )
435 return button_context_settings_time; 426 return button_context_settings_time;
436 427
437 case CONTEXT_TREE: 428 case CONTEXT_TREE:
429 case CONTEXT_MAINMENU:
438 if (global_settings.hold_lr_for_scroll_in_list) 430 if (global_settings.hold_lr_for_scroll_in_list)
439 return button_context_tree_scroll_lr; 431 return button_context_tree_scroll_lr;
440 /* else fall through to CONTEXT_TREE|CONTEXT_CUSTOM */ 432 /* else fall through to CONTEXT_TREE|CONTEXT_CUSTOM */