From 25560f41a1912f701743de6b2d01b0a863d5b966 Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Sat, 1 Nov 2008 00:02:04 +0000 Subject: 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 --- apps/keymaps/keymap-ondio.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps/keymaps') diff --git a/apps/keymaps/keymap-ondio.c b/apps/keymaps/keymap-ondio.c index a6c1ae5b4c..586fcb5e7b 100644 --- a/apps/keymaps/keymap-ondio.c +++ b/apps/keymaps/keymap-ondio.c @@ -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; -- cgit v1.2.3