diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 20 |
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) |