summaryrefslogtreecommitdiff
path: root/inc/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/input.h')
-rw-r--r--inc/input.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/input.h b/inc/input.h
new file mode 100644
index 0000000..73452a4
--- /dev/null
+++ b/inc/input.h
@@ -0,0 +1,10 @@
+#pragma once
+
+enum Key { K_LEFT, K_RIGHT, K_UP, K_DOWN, K_O, K_X };
+
+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);