summaryrefslogtreecommitdiff
path: root/apps/plugins/cube.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-14 01:31:37 +0000
committerDave Chapman <dave@dchapman.com>2005-12-14 01:31:37 +0000
commit54d44c893f0d0ed4403ae7af220224e6646f6dda (patch)
treeb5665adfe8b496dfbce73ce65d4f8151495b0c9b /apps/plugins/cube.c
parentc75425511ea8d0bfdb77d4336117ec7114ef87c8 (diff)
iPod: Initial attempt at button mappings for plugins. All plugins now compile, but more work is needed with the more complex ones to make them iPod friendly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8233 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/cube.c')
-rw-r--r--apps/plugins/cube.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index dc5b5706f4..f081f88e4a 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -79,6 +79,19 @@
#define CUBE_PAUSE (BUTTON_ON | BUTTON_REL)
#define CUBE_HIGHSPEED BUTTON_SELECT
+#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_NANO_PAD)
+#define CUBE_QUIT BUTTON_MENU
+#define CUBE_X_INC BUTTON_LEFT
+#define CUBE_X_DEC BUTTON_RIGHT
+#define CUBE_Y_INC BUTTON_SCROLL_FWD
+#define CUBE_Y_DEC BUTTON_SCROLL_BACK
+#define CUBE_Z_INC (BUTTON_SELECT | BUTTON_LEFT)
+#define CUBE_Z_DEC (BUTTON_SELECT | BUTTON_RIGHT)
+#define CUBE_MODE (BUTTON_SELECT | BUTTON_MENU)
+#define CUBE_PAUSE_PRE BUTTON_PLAY
+#define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL)
+#define CUBE_HIGHSPEED (BUTTON_SELECT | BUTTON_PLAY)
+
#endif
#ifdef HAVE_LCD_BITMAP