summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.h')
-rw-r--r--src/controller.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/controller.h b/src/controller.h
new file mode 100644
index 0000000..bf22335
--- /dev/null
+++ b/src/controller.h
@@ -0,0 +1,21 @@
+#ifndef CONTROLLER_H
+#define CONTROLLER_H
+
+#include <stdbool.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct controller_t {
+ bool up;
+ bool down;
+ bool left;
+ bool right;
+} controller_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CONTROLLER_H */