summaryrefslogtreecommitdiff
path: root/apps/recorder/keyboard.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-23 01:01:14 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-23 01:01:14 +0000
commit259e35488936cc6e75f906413ccd574e336fd38a (patch)
tree51ee679e5102b9a683d44b757ad4b2329d8d7030 /apps/recorder/keyboard.c
parentc188e83eddb72d90826590f956342589131d3211 (diff)
Added button definitions for gmini build. Prettified formatting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5638 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r--apps/recorder/keyboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 7b954da271..dd91daf2e2 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -42,6 +42,7 @@
#define KBD_DONE BUTTON_ON
#define KBD_ABORT BUTTON_OFF
#define KBD_BACKSPACE BUTTON_REC
+
#elif CONFIG_KEYPAD == RECORDER_PAD
#define KBD_CURSOR_RIGHT (BUTTON_ON | BUTTON_RIGHT)
#define KBD_CURSOR_LEFT (BUTTON_ON | BUTTON_LEFT)
@@ -50,12 +51,24 @@
#define KBD_DONE BUTTON_F2
#define KBD_ABORT BUTTON_OFF
#define KBD_BACKSPACE BUTTON_F3
+
#elif CONFIG_KEYPAD == ONDIO_PAD /* restricted Ondio keypad */
#define KBD_MODES /* Ondio uses 2 modes, picker and line edit */
#define KBD_SELECT (BUTTON_MENU | BUTTON_REL) /* backspace in line edit */
#define KBD_SELECT_PRE BUTTON_MENU
#define KBD_DONE (BUTTON_MENU | BUTTON_REPEAT)
#define KBD_ABORT BUTTON_OFF
+
+#elif CONFIG_KEYPAD == GMINI100_PAD
+#define KBD_CURSOR_RIGHT (BUTTON_MENU | BUTTON_RIGHT)
+#define KBD_CURSOR_LEFT (BUTTON_MENU | BUTTON_LEFT)
+#define KBD_SELECT (BUTTON_PLAY | BUTTON_REL)
+#define KBD_SELECT_PRE BUTTON_PLAY
+#define KBD_PAGE_FLIP BUTTON_ON
+#define KBD_DONE (BUTTON_PLAY | BUTTON_REPEAT)
+#define KBD_ABORT BUTTON_OFF
+#define KBD_BACKSPACE (BUTTON_MENU | BUTTON_PLAY)
+
#endif