diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-09 20:31:31 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-09 20:31:31 -0700 |
| commit | da1891aa0a053297e1b17bc34c23c362f9ac0c6b (patch) | |
| tree | 1c74a7102475ab4d86a513f96680179985fc4455 /src/window.c | |
| parent | f7ab7a861f70bd67ef26685f29ed5e5b8b6bef17 (diff) | |
Add mouse movement
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index fdcd31f..b03b0f9 100644 --- a/src/window.c +++ b/src/window.c @@ -36,6 +36,7 @@ void ta_window_init(void) { ta_sdl_init(SDL_INIT_VIDEO); ta_window = ta_sdl_create_window(TA_DEFAULT_WINDOW_TITLE, TA_DEFAULT_WINDOW_WIDTH, TA_DEFAULT_WINDOW_HEIGHT); + SDL_SetWindowRelativeMouseMode(ta_window, true); } void ta_window_update(void) { |