summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'input.h')
-rw-r--r--input.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/input.h b/input.h
new file mode 100644
index 0000000..5aebd66
--- /dev/null
+++ b/input.h
@@ -0,0 +1,17 @@
+#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum Key { K_LEFT, K_RIGHT, K_UP, K_DOWN, K_O };
+
+enum KeyState { KS_UP, KS_DOWN, KS_PRESSED };
+
+void input_update(void);
+int input_up(unsigned int);
+int input_down(unsigned int);
+int input_pressed(unsigned int);
+
+#ifdef __cplusplus
+}
+#endif