summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorDobbertin, Niclas <niclas.dobbertin@gmx.de>2023-06-24 23:04:23 +0200
committerDobbertin, Niclas <niclas.dobbertin@gmx.de>2023-06-24 23:04:23 +0200
commit3422a87bdb087b6d927203e266beb71027779dbe (patch)
tree3d8381b27c94529c45ad7287695befe3eaa241c5 /input.h
init codeHEADmaster
Diffstat (limited to 'input.h')
-rw-r--r--input.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/input.h b/input.h
new file mode 100644
index 0000000..716f48c
--- /dev/null
+++ b/input.h
@@ -0,0 +1,22 @@
+#ifndef INPUT_H_
+#define INPUT_H_
+
+#include <SDL2/SDL.h>
+
+enum Actions {
+ ACTION_QUIT,
+ ACTION_MOVE_UP,
+ ACTION_MOVE_DOWN,
+ ACTION_MOVE_LEFT,
+ ACTION_MOVE_RIGHT,
+
+ ACTION_STATE_COUNT
+};
+
+void handleKeyboardEvent(int *action_states, SDL_Event event);
+
+/* int action_status(enum Actions action); */
+
+/* void action_toggle(enum Actions action); */
+
+#endif // INPUT_H_