aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.h
blob: 0446474d2facce84c577a6f0295be9cf5126bbf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;