summaryrefslogtreecommitdiffstats
path: root/apps/tree.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-01-18 11:09:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-01-18 11:09:06 +0000
commitcedba8830fd015e9a61b7a772927fefe565f7b41 (patch)
treee33e1b1ff14904098534a7e78d71ba672fcb78e0 /apps/tree.h
parent205be712fe6ad03f194216bc0f936f1b5917eafd (diff)
downloadrockbox-cedba8830fd015e9a61b7a772927fefe565f7b41.tar.gz
rockbox-cedba8830fd015e9a61b7a772927fefe565f7b41.tar.bz2
rockbox-cedba8830fd015e9a61b7a772927fefe565f7b41.zip
Matt v.d. Westhuizen's iAudio X5 keypad adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
-rw-r--r--apps/tree.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tree.h b/apps/tree.h
index ad4a4a91aa..7a9958ca0d 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -164,6 +164,21 @@
#define TREE_WPS_PRE BUTTON_SELECT
#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)
#define TREE_POWER_BTN (BUTTON_PLAY | BUTTON_REPEAT)
+
+#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
+
+#define TREE_NEXT BUTTON_DOWN
+#define TREE_PREV BUTTON_UP
+#define TREE_EXIT BUTTON_LEFT
+#define TREE_ABORT BUTTON_PLAY
+#define TREE_RUN (BUTTON_RIGHT | BUTTON_REL)
+#define TREE_RUN_PRE BUTTON_RIGHT
+#define TREE_MENU (BUTTON_MENU | BUTTON_REPEAT)
+#define TREE_MENU_PRE BUTTON_MENU
+#define TREE_WPS (BUTTON_MENU | BUTTON_REL)
+#define TREE_WPS_PRE BUTTON_MENU
+#define TREE_CONTEXT (BUTTON_RIGHT | BUTTON_REPEAT)
+#define TREE_POWER_BTN (BUTTON_PLAY | BUTTON_REPEAT)
#endif
struct entry {