diff options
author | quou <quou@disroot.org> | 2023-05-02 21:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-02 21:02:04 +1000 |
commit | c1efdf9b0875f2a39488a86cd838947a24fab9fc (patch) | |
tree | b459d024fa99029758f8d2f8630470fe6060122e /input.h |
Initial commit.
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,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 |