From 5deedc657177182407e418812a5f4057ad4b848a Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Mon, 5 Dec 2005 19:04:50 +0000 Subject: [PATCH] Playback speed changing support for H300. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8153 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 3 ++- apps/screens.c | 5 +++-- apps/screens.h | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index aeaaebd5c2..888cdf9103 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -531,7 +531,8 @@ long gui_wps_show(void) #endif /* pitch screen */ -#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD +#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD \ + || CONFIG_KEYPAD == IRIVER_H300_PAD case BUTTON_ON | BUTTON_UP: case BUTTON_ON | BUTTON_DOWN: if (2 == pitch_screen()) diff --git a/apps/screens.c b/apps/screens.c index d8bfb56500..41b51cc0ac 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -342,14 +342,15 @@ int charging_screen(void) #endif /* HAVE_CHARGING && !HAVE_POWEROFF_WHILE_CHARGING */ -#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD +#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD \ + || CONFIG_KEYPAD == IRIVER_H300_PAD /* returns: 0 if no key was pressed 1 if a key was pressed (or if ON was held down long enough to repeat) 2 if USB was connected */ #if CONFIG_KEYPAD == RECORDER_PAD #define PITCH_PAUSE BUTTON_PLAY -#elif CONFIG_KEYPAD == IRIVER_H100_PAD +#elif CONFIG_KEYPAD == IRIVER_H100_PAD || CONFIG_KEYPAD == IRIVER_H300_PAD #define PITCH_PAUSE BUTTON_SELECT #endif int pitch_screen(void) diff --git a/apps/screens.h b/apps/screens.h index c8e5c320f5..d9b6ba47be 100644 --- a/apps/screens.h +++ b/apps/screens.h @@ -33,7 +33,8 @@ void charging_splash(void); int mmc_remove_request(void); #endif -#if CONFIG_KEYPAD == RECORDER_PAD || defined(IRIVER_H100_SERIES) +#if CONFIG_KEYPAD == RECORDER_PAD || CONFIG_KEYPAD == IRIVER_H100_PAD \ + || CONFIG_KEYPAD == IRIVER_H300_PAD int pitch_screen(void); #endif #if CONFIG_KEYPAD == RECORDER_PAD