summaryrefslogtreecommitdiff
path: root/src/systems
diff options
context:
space:
mode:
Diffstat (limited to 'src/systems')
-rw-r--r--src/systems/input.c8
-rw-r--r--src/systems/input.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/systems/input.c b/src/systems/input.c
index 152b349..c3af96a 100644
--- a/src/systems/input.c
+++ b/src/systems/input.c
@@ -7,9 +7,9 @@
#include "keys.h"
#include "log.h"
-static Input_State *g_input; // Use a global to simplify caller code
+static Input_State* g_input; // Use a global to simplify caller code
-bool Input_Init(Input_State *input, GLFWwindow *window) {
+bool Input_Init(Input_State* input, GLFWwindow* window) {
INFO("Input init");
memset(input, 0, sizeof(Input_State));
@@ -30,9 +30,9 @@ bool Input_Init(Input_State *input, GLFWwindow *window) {
return true;
}
-void Input_Shutdown(Input_State *input) {}
+void Input_Shutdown(Input_State* input) {}
-void Input_Update(Input_State *input) {
+void Input_Update(Input_State* input) {
glfwPollEvents();
// --- update keyboard input
diff --git a/src/systems/input.h b/src/systems/input.h
index 2665a11..c3b2500 100644
--- a/src/systems/input.h
+++ b/src/systems/input.h
@@ -24,7 +24,7 @@ typedef struct mouse_state {
} mouse_state;
typedef struct Input_State {
- struct GLFWwindow *window;
+ struct GLFWwindow* window;
mouse_state mouse;
bool depressed_keys[KEYCODE_MAX];
bool just_pressed_keys[KEYCODE_MAX];
@@ -45,9 +45,9 @@ PUB bool MouseBtn_Held(MouseBtn btn);
// --- Lifecycle
-PUB bool Input_Init(Input_State *input, struct GLFWwindow *window);
-PUB void Input_Shutdown(Input_State *input);
+PUB bool Input_Init(Input_State* input, struct GLFWwindow* window);
+PUB void Input_Shutdown(Input_State* input);
-PUB 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