diff options
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#pragma once +#ifdef __cplusplus +extern "C" { +#endif + +enum Key { K_LEFT, K_RIGHT, K_UP, K_DOWN, K_O }; + +enum KeyState { KS_UP, KS_DOWN, KS_PRESSED }; + +void input_update(void); +int input_up(unsigned int); +int input_down(unsigned int); +int input_pressed(unsigned int); + +#ifdef __cplusplus +} +#endif |