aboutsummaryrefslogtreecommitdiff
path: root/input.h
blob: ea2bc18abb0fe31a4d9712cc1347689fce27fb85 (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
#ifndef input_h
#define input_h

typedef enum {
	btn_unknown = 0,
	btn_jump,
	btn_shoot,
	btn_dpad_left,
	btn_dpad_right,
	btn_dpad_up,
	btn_dpad_down,
	btn_pause,
	btn_edit,
	btn_save_level,
	btn_count
} Button;

int button_pressed(Button btn);
int button_just_pressed(Button btn);
int button_just_released(Button btn);

void reset_input();

#endif