aboutsummaryrefslogblamecommitdiffstats
path: root/src/input.h
blob: c72532dcba9a07a7678ebe1539a3a80bc62c4a80 (plain) (tree)
1
2
  
                                                 


























                                      
/*
 * Copyright (c) 2019-2021, 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;