summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-06-18 20:59:50 -0500
committerDaniel Hader <[email protected]>2026-06-18 20:59:50 -0500
commitaf4a85978598f5fd32a415ebb419d190adce4b22 (patch)
tree900155edd0d4d86d2ab9048909aca35047579e26 /src/input.c
parent482ea0261cb9f0def49ce3df542b2a7f811262d1 (diff)
structs are now typedef'ed for brevity
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input.c b/src/input.c
index ab7768c..d0b53d0 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1,13 +1,13 @@
#include "input.h"
#include <SDL3/SDL_events.h>
-struct LEO_InputManager {
+typedef struct {
bool quit;
-};
+} LEO_InputManager;
-static struct LEO_InputManager *LEO_InputManager_singleton()
+static LEO_InputManager *LEO_InputManager_singleton()
{
- static struct LEO_InputManager manager;
+ static LEO_InputManager manager;
static bool initialized = false;
if (!initialized) {
@@ -20,7 +20,7 @@ static struct LEO_InputManager *LEO_InputManager_singleton()
void LEO_Input_update(const SDL_Event event)
{
- struct LEO_InputManager *manager = LEO_InputManager_singleton();
+ LEO_InputManager *manager = LEO_InputManager_singleton();
switch (event.type) {
case SDL_EVENT_QUIT:
@@ -30,6 +30,6 @@ void LEO_Input_update(const SDL_Event event)
bool LEO_Input_quit()
{
- struct LEO_InputManager *manager = LEO_InputManager_singleton();
+ LEO_InputManager *manager = LEO_InputManager_singleton();
return manager->quit;
}