From f084d3b406e94737b25c43b6d90b34ddd597ddd0 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Mon, 10 Aug 2026 00:11:39 +0200 Subject: [PATCH] Renamed inputs structs. --- SDL3_Core | 2 +- src/game.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SDL3_Core b/SDL3_Core index 2179c7e..abf1231 160000 --- a/SDL3_Core +++ b/SDL3_Core @@ -1 +1 @@ -Subproject commit 2179c7eb94e8c563d2a0dbe8b3e9048cf2e27512 +Subproject commit abf1231aac57cbfe6aa3c3c03aacfffb5b5a9970 diff --git a/src/game.c b/src/game.c index f3f0b92..081881c 100644 --- a/src/game.c +++ b/src/game.c @@ -141,16 +141,16 @@ int game_init(void) void game_handle_event(void) { - event_t event; + input_event_t event; - while(pollevent(&event)) + while(poll_event(&event)) { - if(event.type == EVENT_KEY_DOWN) + if(event.type == INPUT_EVENT_KEY_DOWN) game.events.keys[event.key] = true; - else if(event.type == EVENT_KEY_UP) + else if(event.type == INPUT_EVENT_KEY_UP) game.events.keys[event.key] = false; - if(event.type == EVENT_QUIT) + if(event.type == INPUT_EVENT_QUIT) game.is_running = false; } }