mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Make 'accept' in the yesno screen work on an Iaudio remote (with the X5 or M5) - assigning it to a short press of Play, same as the standard 'ok' action.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19895 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
80cb3551eb
commit
991cbf86c2
1 changed files with 9 additions and 0 deletions
|
|
@ -346,6 +346,12 @@ static const struct button_mapping button_context_yesnoscreen[] = {
|
|||
LAST_ITEM_IN_LIST
|
||||
}; /* button_context_settings_yesnoscreen */
|
||||
|
||||
static const struct button_mapping remote_button_context_yesnoscreen[] = {
|
||||
{ ACTION_YESNO_ACCEPT, BUTTON_RC_PLAY, BUTTON_NONE },
|
||||
LAST_ITEM_IN_LIST
|
||||
}; /* remote_button_context_settings_yesnoscreen */
|
||||
|
||||
|
||||
static const struct button_mapping* get_context_mapping_remote( int context )
|
||||
{
|
||||
context ^= CONTEXT_REMOTE;
|
||||
|
|
@ -379,6 +385,9 @@ static const struct button_mapping* get_context_mapping_remote( int context )
|
|||
|
||||
case CONTEXT_WPS:
|
||||
return remote_button_context_wps;
|
||||
|
||||
case CONTEXT_YESNOSCREEN:
|
||||
return remote_button_context_yesnoscreen;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue