summaryrefslogtreecommitdiff
path: root/input.h
blob: 716f48c2bbaba6ed57b78d1df9877575fadf3869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_