summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/input.h')
-rw-r--r--apps/plugins/rockboy/input.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/input.h b/apps/plugins/rockboy/input.h
new file mode 100644
index 0000000..8c5fdf9
--- /dev/null
+++ b/apps/plugins/rockboy/input.h
@@ -0,0 +1,24 @@
+/*
+ * input.h
+ *
+ * Definitions for input device stuff - buttons, keys, etc.
+ */
+
+
+#define MAX_KEYS 10
+
+typedef struct event_s
+{
+ int type;
+ int code;
+} event_t;
+
+#define EV_NONE 0
+#define EV_PRESS 1
+#define EV_RELEASE 2
+#define EV_REPEAT 3
+
+int ev_postevent(event_t *ev);
+int ev_getevent(event_t *ev);
+
+