summaryrefslogtreecommitdiff
path: root/apps/keymaps
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2008-11-01 00:02:04 +0000
committerMarianne Arnold <pixelma@rockbox.org>2008-11-01 00:02:04 +0000
commit25560f41a1912f701743de6b2d01b0a863d5b966 (patch)
tree4b694588813a9a48f44ac8b19f55a70a9af15048 /apps/keymaps
parent42546b2bd69af2ad2fc1d572ef38e3bb3d3c4ef3 (diff)
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
Diffstat (limited to 'apps/keymaps')
-rw-r--r--apps/keymaps/keymap-ondio.c11
1 files changed, 8 insertions, 3 deletions
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;