diff options
| author | Aaditya Dhruv <[email protected]> | 2026-01-28 13:24:36 -0600 |
|---|---|---|
| committer | Aaditya Dhruv <[email protected]> | 2026-01-28 13:25:21 -0600 |
| commit | 77dddef4153688218bec0b50f547622daa18903d (patch) | |
| tree | 33ec69c97e86f38c2afb397db8620cfb92f34057 /src/input.h | |
| parent | 17cd7420e9d2432d56f9c69c6e4a8ab665ef4b9b (diff) | |
Move input to separate file
- Input is handled in a separate thread, its all kind of unsafe
right now but will fix later on
Diffstat (limited to 'src/input.h')
| -rw-r--r-- | src/input.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |
