diff options
Diffstat (limited to 'src/systems/input.h')
-rw-r--r-- | src/systems/input.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/systems/input.h b/src/systems/input.h index bf80a84..2665a11 100644 --- a/src/systems/input.h +++ b/src/systems/input.h @@ -32,22 +32,22 @@ typedef struct Input_State { } Input_State; /** @brief `key` is currently being held down */ -bool key_is_pressed(keycode key); +PUB bool key_is_pressed(keycode key); /** @brief `key` was just pressed */ -bool key_just_pressed(keycode key); +PUB bool key_just_pressed(keycode key); /** @brief `key` was just released */ -bool key_just_released(keycode key); +PUB bool key_just_released(keycode key); // TODO: right btn as well -bool MouseBtn_Held(MouseBtn btn); +PUB bool MouseBtn_Held(MouseBtn btn); // --- Lifecycle -bool Input_Init(Input_State *input, struct GLFWwindow *window); -void Input_Shutdown(Input_State *input); +PUB bool Input_Init(Input_State *input, struct GLFWwindow *window); +PUB void Input_Shutdown(Input_State *input); -void Input_Update(Input_State *state); // must be run once per main loop +PUB void Input_Update(Input_State *state); // must be run once per main loop PUB mouse_state Input_GetMouseState();
\ No newline at end of file |