aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl/action.h')
-rw-r--r--src/sdl/action.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/sdl/action.h b/src/sdl/action.h
new file mode 100644
index 0000000..d6d9870
--- /dev/null
+++ b/src/sdl/action.h
@@ -0,0 +1,27 @@
+#ifndef ACTION_H
+#define ACTION_H
+
+#include <SDL.h>
+
+typedef enum {
+ ACTION_NONE,
+ ACTION_QUIT,
+ ACTION_MOVE,
+ ACTION_WARP,
+ ACTION_WARP_BUF_PUSH,
+ ACTION_WARP_BUF_POP,
+ ACTION_UNDO,
+ ACTION_NEXT,
+ ACTION_SOLVE,
+ ACTION_RESET,
+ ACTION_LAST,
+} action_type_t;
+
+typedef struct {
+ action_type_t type;
+ uint64_t data;
+} action_t;
+
+action_t get_action(const SDL_Keycode);
+
+#endif /* ACTION_H */