summaryrefslogtreecommitdiffstats
path: root/apps/screens.h
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-03-21 07:59:23 +0000
committerZakk Roberts <midk@rockbox.org>2006-03-21 07:59:23 +0000
commit87afd0b0507a59e0731a79662ab820f89bf5b585 (patch)
tree7accd874658fb2c5865703ef5d0a8c3e2a131a31 /apps/screens.h
parentdd521146b735790549dd91898ed814af994ef6ea (diff)
downloadrockbox-87afd0b0507a59e0731a79662ab820f89bf5b585.tar.gz
rockbox-87afd0b0507a59e0731a79662ab820f89bf5b585.tar.bz2
rockbox-87afd0b0507a59e0731a79662ab820f89bf5b585.zip
Reworked pitch screen for easier adjustment and better looks. Added some button definitions for iPods - coming soon to a Sound Settings menu near you...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9146 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.h')
-rw-r--r--apps/screens.h32
1 files changed, 27 insertions, 5 deletions
diff --git a/apps/screens.h b/apps/screens.h
index d9b6ba47be..c6c3e06dc6 100644
--- a/apps/screens.h
+++ b/apps/screens.h
@@ -22,6 +22,30 @@
#include "config.h"
#include "timefuncs.h"
+#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H100_PAD) ||\
+ (CONFIG_KEYPAD == IRIVER_H300_PAD) || (CONFIG_KEYPAD == ONDIO_PAD)
+#define PITCH_UP BUTTON_UP
+#define PITCH_DOWN BUTTON_DOWN
+#define PITCH_RIGHT BUTTON_RIGHT
+#define PITCH_LEFT BUTTON_LEFT
+#define PITCH_EXIT BUTTON_OFF
+#define PITCH_RESET BUTTON_ON
+#elif (CONFIG_KEYPAD == ONDIO_PAD)
+#define PITCH_UP BUTTON_UP
+#define PITCH_DOWN BUTTON_DOWN
+#define PITCH_RIGHT BUTTON_RIGHT
+#define PITCH_LEFT BUTTON_LEFT
+#define PITCH_EXIT BUTTON_OFF
+#define PITCH_RESET BUTTON_MENU
+#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD)
+#define PITCH_UP BUTTON_SCROLL_FWD
+#define PITCH_DOWN BUTTON_SCROLL_BACK
+#define PITCH_RIGHT BUTTON_RIGHT
+#define PITCH_LEFT BUTTON_LEFT
+#define PITCH_EXIT BUTTON_SELECT
+#define PITCH_RESET BUTTON_MENU
+#endif
+
struct screen;
void usb_display_info(struct screen * display);
@@ -33,11 +57,9 @@ void charging_splash(void);
int mmc_remove_request(void);
#endif
-#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
+bool pitch_screen(void);
+
+#if CONFIG_KEYPAD == RECORDER_PAD
extern bool quick_screen_f3(int button_enter);
#endif
extern bool quick_screen_quick(int button_enter);