summaryrefslogtreecommitdiffstats
path: root/apps/wps.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-12 16:07:17 +0000
committerDave Chapman <dave@dchapman.com>2005-11-12 16:07:17 +0000
commit64e5239b4c668d7fd7b5372e9d679bc6e041028b (patch)
tree58bd95e135d132d0d5d6b80be0d7bef2e7f9381b /apps/wps.h
parentafbd4386ffdd402969cdeeeaa81e664860bb12da (diff)
downloadrockbox-64e5239b4c668d7fd7b5372e9d679bc6e041028b.tar.gz
rockbox-64e5239b4c668d7fd7b5372e9d679bc6e041028b.zip
iPod: Add placeholder button definitions - these need reviewing when the button usage for the iPod is decided
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7830 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.h')
-rw-r--r--apps/wps.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/wps.h b/apps/wps.h
index a419c809f0..61b3d002fc 100644
--- a/apps/wps.h
+++ b/apps/wps.h
@@ -166,6 +166,27 @@
#define WPS_KEYLOCK (BUTTON_MENU | BUTTON_DOWN)
#define WPS_ID3 (BUTTON_MENU | BUTTON_ON)
+#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_NANO_PAD)
+
+/* TODO: Check WPS button assignments */
+
+#define WPS_NEXT (BUTTON_RIGHT | BUTTON_REL)
+#define WPS_NEXT_PRE BUTTON_RIGHT
+#define WPS_PREV (BUTTON_LEFT | BUTTON_REL)
+#define WPS_PREV_PRE BUTTON_LEFT
+#define WPS_FFWD (BUTTON_RIGHT | BUTTON_REPEAT)
+#define WPS_REW (BUTTON_LEFT | BUTTON_REPEAT)
+#define WPS_INCVOL BUTTON_UP
+#define WPS_DECVOL BUTTON_DOWN
+#define WPS_PAUSE BUTTON_OFF
+/* #define WPS_MENU iPod can't have both main menu and context menu in wps */
+#define WPS_BROWSE (BUTTON_MENU | BUTTON_REL)
+#define WPS_BROWSE_PRE BUTTON_MENU
+#define WPS_KEYLOCK (BUTTON_MENU | BUTTON_DOWN)
+#define WPS_EXIT (BUTTON_OFF | BUTTON_REPEAT)
+#define WPS_CONTEXT (BUTTON_MENU | BUTTON_REPEAT)
+
+
#endif
extern bool keys_locked;