From d5cad0e247ffffd4e985696809e46805177c6940 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sat, 31 Jan 2026 18:34:55 -0600 Subject: Bugfixes, infinite loading works --- src/input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input.c') diff --git a/src/input.c b/src/input.c index 06f63a5..472b043 100644 --- a/src/input.c +++ b/src/input.c @@ -5,6 +5,7 @@ #include #include #include +#include pthread_t input_init(struct engine* engine) { pthread_t thread; @@ -17,6 +18,7 @@ void input_join(pthread_t thread, struct engine* engine) { void input_handle(struct engine *engine) { SDL_Event event; SDL_SetRelativeMouseMode(SDL_TRUE); + SDL_SetWindowMouseGrab(engine->window->window, SDL_TRUE); while (engine->game_loop) { // Quit game // TODO: Locks? -- cgit