summaryrefslogtreecommitdiff
path: root/apps/bookmark.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-19 03:19:12 +0000
committerDave Chapman <dave@dchapman.com>2005-11-19 03:19:12 +0000
commitfe772405beb9e49e5c83c885763628985f81fc5f (patch)
tree23cb659d94c404e3a6426f26705ef8d5ff86f243 /apps/bookmark.h
parenta807fca49be192b676719c2aecc5056754d04c7f (diff)
iPod: First attempt to implement sensible button mappings. Changes to all targets to replace a small number of references to raw button codes (BUTTON_???) with their abstract equivalents.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.h')
-rw-r--r--apps/bookmark.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/bookmark.h b/apps/bookmark.h
index 16f4e5609f..6d281700f4 100644
--- a/apps/bookmark.h
+++ b/apps/bookmark.h
@@ -21,6 +21,31 @@
#include <stdbool.h>
+#if CONFIG_KEYPAD == ONDIO_PAD
+#define BOOKMARK_SELECT_PRE BUTTON_RIGHT
+#define BOOKMARK_SELECT (BUTTON_RIGHT | BUTTON_REL)
+#define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
+#define BOOKMARK_DOWN BUTTON_DOWN
+
+#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
+ (CONFIG_KEYPAD == IRIVER_H300_PAD)
+#define BOOKMARK_SELECT BUTTON_SELECT
+#define BOOKMARK_DELETE (BUTTON_ON | BUTTON_SELECT)
+#define BOOKMARK_DOWN BUTTON_DOWN
+
+#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
+ (CONFIG_KEYPAD == IPOD_NANO_PAD)
+#define BOOKMARK_SELECT BUTTON_SELECT
+#define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
+#define BOOKMARK_DOWN BUTTON_SCROLL_FWD
+
+#else /* player, recorder, gmini */
+#define BOOKMARK_SELECT BUTTON_PLAY
+#define BOOKMARK_DELETE (BUTTON_ON | BUTTON_PLAY)
+#define BOOKMARK_DOWN BUTTON_DOWN
+
+#endif
+
bool bookmark_load_menu(void);
bool bookmark_autobookmark(void);
bool bookmark_create_menu(void);