From 8a95b244a32ac58aafda89ba088d715714ef866a Mon Sep 17 00:00:00 2001 From: kdx Date: Tue, 28 Mar 2023 04:41:31 +0000 Subject: spawn mouse at the center of the screen --- sources/TZR_Init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c index 7f80978..e2ac1e5 100644 --- a/sources/TZR_Init.c +++ b/sources/TZR_Init.c @@ -64,5 +64,7 @@ _TZR_Init(const TZR_Config *config) if (!___tzr_config.show_cursor) SDL_ShowCursor(0); + ___tzr_mouse_x = ___tzr_config.width / 2; + ___tzr_mouse_y = ___tzr_config.height / 2; return 0; } -- cgit v1.2.3