forked from len0rd/rockbox
Introducing the root menu!
Blind users: get a new voice file as there are lots of lang changes and new strings. FS#6630 or RootMenu on the wiki for more info. complaints to /dev/null :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12528 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d94c7d3f76
commit
91cb68a1fb
41 changed files with 852 additions and 363 deletions
|
|
@ -65,6 +65,12 @@ static const struct button_mapping button_context_standard[] = {
|
|||
LAST_ITEM_IN_LIST
|
||||
}; /* button_context_standard */
|
||||
|
||||
static const struct button_mapping button_context_menu[] = {
|
||||
{ ACTION_MENU_WPS, BUTTON_ON, BUTTON_NONE },
|
||||
{ ACTION_MENU_STOP, BUTTON_OFF, BUTTON_NONE },
|
||||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||
}; /* button_context_menu */
|
||||
|
||||
static const struct button_mapping button_context_wps[] = {
|
||||
{ ACTION_WPS_PLAY, BUTTON_ON|BUTTON_REL, BUTTON_ON },
|
||||
|
|
@ -715,10 +721,18 @@ static const struct button_mapping button_context_radio_h300lcdremote[] = {
|
|||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS)
|
||||
};
|
||||
|
||||
static const struct button_mapping button_context_menu_remote[] = {
|
||||
{ ACTION_MENU_STOP, BUTTON_RC_STOP, BUTTON_NONE },
|
||||
{ ACTION_MENU_WPS, BUTTON_RC_ON, BUTTON_NONE },
|
||||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||
};
|
||||
|
||||
/* the actual used tables */
|
||||
static const struct button_mapping
|
||||
*remote_btn_ctxt_std = 0,
|
||||
*remote_btn_ctxt_wps = 0,
|
||||
*remote_btn_ctxt_menu = button_context_menu_remote,
|
||||
*remote_btn_ctxt_list = 0,
|
||||
*remote_btn_ctxt_tree = 0,
|
||||
*remote_btn_ctxt_listtree_scroll_w_cmb = 0,
|
||||
|
|
@ -866,8 +880,9 @@ static const struct button_mapping* get_context_mapping_remote(int context)
|
|||
switch (context)
|
||||
{
|
||||
case CONTEXT_STD:
|
||||
case CONTEXT_MAINMENU:
|
||||
return remote_btn_ctxt_std;
|
||||
case CONTEXT_MAINMENU:
|
||||
return remote_btn_ctxt_menu;
|
||||
case CONTEXT_WPS: /* common for all remotes */
|
||||
return button_context_wps_remotescommon;
|
||||
|
||||
|
|
@ -914,8 +929,9 @@ const struct button_mapping* get_context_mapping(int context)
|
|||
switch (context)
|
||||
{
|
||||
case CONTEXT_STD:
|
||||
case CONTEXT_MAINMENU:
|
||||
return button_context_standard;
|
||||
case CONTEXT_MAINMENU:
|
||||
return button_context_menu;
|
||||
case CONTEXT_WPS:
|
||||
return button_context_wps;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue