summaryrefslogtreecommitdiffstats
path: root/apps/tree.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-02-24 15:42:52 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-02-24 15:42:52 +0000
commit338e2bbb0c6673452c64378ef9e609d5c19c7558 (patch)
tree7314096e43a7eedfd7091c39fed97c0c33400827 /apps/tree.h
parentb902428180c11def61f2d3caa2612b9f80d7d41a (diff)
downloadrockbox-338e2bbb0c6673452c64378ef9e609d5c19c7558.tar.gz
rockbox-338e2bbb0c6673452c64378ef9e609d5c19c7558.tar.bz2
rockbox-338e2bbb0c6673452c64378ef9e609d5c19c7558.zip
first gigabeat commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/tree.h b/apps/tree.h
index 92a2fcf770..9b4888c46a 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -155,6 +155,23 @@
#define TREE_WPS_PRE BUTTON_REC
#define TREE_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT)
#define TREE_POWER_BTN (BUTTON_PLAY | BUTTON_REPEAT)
+
+#elif CONFIG_KEYPAD == GIGABEAT_PAD
+
+#define TREE_NEXT BUTTON_DOWN
+#define TREE_PREV BUTTON_UP
+#define TREE_EXIT BUTTON_LEFT
+#define TREE_ABORT BUTTON_A
+#define TREE_ENTER BUTTON_RIGHT
+#define TREE_RUN (BUTTON_SELECT | BUTTON_REL)
+#define TREE_RUN_PRE BUTTON_SELECT
+#define TREE_MENU (BUTTON_MENU | BUTTON_REL)
+#define TREE_MENU_PRE BUTTON_MENU
+#define TREE_WPS (BUTTON_POWER | BUTTON_REL)
+#define TREE_WPS_PRE BUTTON_POWER
+#define TREE_CONTEXT (BUTTON_SELECT | BUTTON_REPEAT)
+#define TREE_POWER_BTN BUTTON_POWER
+
#endif
struct entry {