aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.h
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2020-10-10 17:16:14 +0000
committeryzrh <yzrh@noema.org>2020-10-10 17:37:53 +0000
commitb9b74e88028f81e7b169a5e168102138e8c2c46c (patch)
tree2b8f9f8896db3a6871c56215acf71cb502fe7be4 /src/input.h
downloadsnake-sdl-b9b74e88028f81e7b169a5e168102138e8c2c46c.tar.gz
snake-sdl-b9b74e88028f81e7b169a5e168102138e8c2c46c.tar.zst
Initial commit.
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h
new file mode 100644
index 0000000..0446474
--- /dev/null
+++ b/src/input.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2019-2020, yzrh <yzrh@noema.org>
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+typedef enum {
+ SNAKE_EMPTY,
+ SNAKE_LEFT,
+ SNAKE_UP,
+ SNAKE_DOWN,
+ SNAKE_RIGHT,
+ SNAKE_JUMP,
+ SNAKE_SELECT,
+ SNAKE_PAUSE,
+ SNAKE_RESET,
+ SNAKE_GOD,
+ SNAKE_GROW,
+ SNAKE_TELEPORT,
+ SNAKE_MUSIC,
+ SNAKE_TICK_DECREASE,
+ SNAKE_TICK_INCREASE
+} Snake_Input;
+
+typedef enum {
+ SNAKE_KEYBOARD,
+ SNAKE_TOUCHSCREEN,
+ SNAKE_CONTROLLER
+} Snake_Device;