summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-11-19 10:54:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-11-19 10:54:59 +0000
commite68ccbd1d8a080969e024cb24f96209adf3c664e (patch)
tree7b5eee87514a1988724969028a9645daffdd6db6 /apps/wps.c
parente17938c949dfe9b1fd11a611b4b523d6dedeecb3 (diff)
Added iRiver button codes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/apps/wps.c b/apps/wps.c
index f89bdbd840..d3a2733cf6 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -62,7 +62,25 @@ static struct mp3entry* nid3 = NULL;
static char current_track_path[MAX_PATH+1];
/* button definitions */
-#if CONFIG_KEYPAD == RECORDER_PAD
+#if CONFIG_KEYPAD == IRIVER_H100_PAD
+#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_ON
+#define WPS_MENU (BUTTON_MODE | BUTTON_REL)
+#define WPS_MENU_PRE BUTTON_MODE
+#define WPS_BROWSE (BUTTON_ON | BUTTON_REL)
+#define WPS_BROWSE_PRE BUTTON_ON
+#define WPS_EXIT BUTTON_OFF
+#define WPS_KEYLOCK (BUTTON_MODE | BUTTON_DOWN)
+#define WPS_ID3 (BUTTON_MODE | BUTTON_ON)
+
+#elif CONFIG_KEYPAD == RECORDER_PAD
#define WPS_NEXT (BUTTON_RIGHT | BUTTON_REL)
#define WPS_NEXT_PRE BUTTON_RIGHT
#define WPS_PREV (BUTTON_LEFT | BUTTON_REL)