#ifndef input_h #define input_h #include "prbm.h" struct key { i32 last; i32 now; }; struct mouse { v2 pos; v2 last; v2 offset; struct key left; struct key right; i32 first; i32 capture; }; struct input { struct mouse mouse; struct key right; struct key left; struct key up; struct key down; struct key forward; struct key backward; }; struct input init_input(void); void update_input(struct input *input); i32 key_down(struct key key); i32 key_first(struct key key); #endif