#ifndef INPUT_H #define INPUT_H #include "types.h" struct key { i32 last; i32 current; }; struct input { struct key escape; struct key right; struct key left; struct key up; struct key down; struct key space; struct key start; }; struct input init_input(void); void update_input(struct input *input); i32 key_first_press(struct key key); i32 key_is_pressed(struct key key); i32 key_was_pressed(struct key key); #endif