summaryrefslogtreecommitdiff
path: root/firmware/export/button.h
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-11-22 21:55:05 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-11-22 21:55:05 +0000
commitf57d0220dd216937a210a18f8ab8394091bb6a08 (patch)
tree79b724000023174b931ce898a42f8a2fbf6d1438 /firmware/export/button.h
parentfd02642ee0238ae2b32b7a5ea7005abf0e72489d (diff)
downloadrockbox-f57d0220dd216937a210a18f8ab8394091bb6a08.zip
rockbox-f57d0220dd216937a210a18f8ab8394091bb6a08.tar.gz
rockbox-f57d0220dd216937a210a18f8ab8394091bb6a08.tar.bz2
rockbox-f57d0220dd216937a210a18f8ab8394091bb6a08.tar.xz
Adapted and commited Markus Kaufhold's remote hold icon on statusbar patch for iriver ; generic logo handler (now it's possible to have a different USB logo on main screen and on remote), made the quickscreen behave as it was before
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8044 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r--firmware/export/button.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h
index a0cbd78..4bf5edd 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -22,7 +22,11 @@
#include <stdbool.h>
#include "config.h"
-
+#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
+ (CONFIG_KEYPAD == IRIVER_H300_PAD)
+#define HAS_BUTTON_HOLD
+#define HAS_REMOTE_BUTTON_HOLD
+#endif
extern struct event_queue button_queue;
void button_init (void);
@@ -34,9 +38,10 @@ void button_clear_queue(void);
void button_set_flip(bool flip); /* turn 180 degrees */
#endif
-#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
- (CONFIG_KEYPAD == IRIVER_H300_PAD)
+#ifdef HAS_BUTTON_HOLD
bool button_hold(void);
+#endif
+#ifdef HAS_REMOTE_BUTTON_HOLD
bool remote_button_hold(void);
#endif