summaryrefslogtreecommitdiff
path: root/firmware/export/button.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2012-01-08 00:07:19 +0000
committerRafaël Carré <rafael.carre@gmail.com>2012-01-08 00:07:19 +0000
commit95cf63b294f3cbe2d4da60f32a35c7b07c4b74a3 (patch)
tree26527cbd96f62ff5a26d46e8b63be40e0a306084 /firmware/export/button.h
parent63ead774d534db1e07cdae3edb56655d43b19902 (diff)
button-target.h : move prototypes to button.h
no need to define BUTTON_REMOTE anymore git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31620 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r--firmware/export/button.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h
index 3847d2ac9f..3f6052a309 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -28,8 +28,26 @@
#include "button-target.h"
#endif
+#ifndef BUTTON_REMOTE
+# define BUTTON_REMOTE 0
+#endif
+
extern struct event_queue button_queue;
+void button_init_device(void);
+#ifdef HAVE_BUTTON_DATA
+int button_read_device(int *);
+#else
+int button_read_device(void);
+#endif
+
+#ifdef HAS_BUTTON_HOLD
+bool button_hold(void);
+#endif
+#ifdef HAS_REMOTE_BUTTON_HOLD
+bool remote_button_hold(void);
+#endif
+
void button_init (void) INIT_ATTR;
void button_close(void);
int button_queue_count(void);