OndioFM keymap - trigger screen: prevent pressing 'Right' (to change the value) from also accepting the setting and leaving the trigger screen; use 'Mode' now for actually accepting the settings. To avoid button action conflicts, separate the rectrigger context and give it an own ACTION_STD_OK.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18954 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
42546b2bd6
commit
25560f41a1
1 changed files with 8 additions and 3 deletions
|
@ -137,16 +137,20 @@ static const struct button_mapping button_context_pitchscreen[] = {
|
|||
}; /* button_context_pitchscreen */
|
||||
|
||||
#ifdef HAVE_RECORDING
|
||||
static const struct button_mapping button_context_rectrigger[] = {
|
||||
{ ACTION_STD_OK, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_RECSCREEN)
|
||||
};
|
||||
static 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_REL, BUTTON_RIGHT },
|
||||
{ ACTION_SETTINGS_INCREPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
{ ACTION_SETTINGS_DEC, BUTTON_LEFT, BUTTON_NONE },
|
||||
{ ACTION_SETTINGS_DECREPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
|
||||
|
||||
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
|
||||
}; /* button_context_recscreen */
|
||||
#endif
|
||||
#endif /* HAVE_RECORDING */
|
||||
|
||||
static const struct button_mapping button_context_keyboard[] = {
|
||||
{ ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE },
|
||||
|
@ -212,8 +216,9 @@ const struct button_mapping* get_context_mapping( int context )
|
|||
return button_context_tree;
|
||||
#ifdef HAVE_RECORDING
|
||||
case CONTEXT_RECSCREEN:
|
||||
return button_context_recscreen;
|
||||
case CONTEXT_SETTINGS_RECTRIGGER:
|
||||
return button_context_recscreen;
|
||||
return button_context_rectrigger;
|
||||
#endif
|
||||
case CONTEXT_KEYBOARD:
|
||||
return button_context_keyboard;
|
||||
|
|
Loading…
Reference in a new issue