From 77dddef4153688218bec0b50f547622daa18903d Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Wed, 28 Jan 2026 13:24:36 -0600 Subject: Move input to separate file - Input is handled in a separate thread, its all kind of unsafe right now but will fix later on --- src/input.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/input.h (limited to 'src/input.h') diff --git a/src/input.h b/src/input.h new file mode 100644 index 0000000..3d8fe14 --- /dev/null +++ b/src/input.h @@ -0,0 +1,7 @@ +#pragma once +#include "SDL2/SDL.h" +#include "engine.h" + +void input_handle(struct engine* engine); +pthread_t input_init(struct engine* engine); +void input_join(pthread_t thread, struct engine* engine); -- cgit