diff options
author | kdx <kdx.42@42l.fr> | 2023-03-28 04:41:31 +0000 |
---|---|---|
committer | kdx <kdx.42@42l.fr> | 2023-03-28 04:41:31 +0000 |
commit | 8a95b244a32ac58aafda89ba088d715714ef866a (patch) | |
tree | 6fc79ec3bf72b95fa7ec44577e4f5f1277606d07 /sources/TZR_Init.c | |
parent | adfe71c6848e73da65fc91bbc745de4b0be29ce9 (diff) | |
download | tzr-8a95b244a32ac58aafda89ba088d715714ef866a.tar.gz |
spawn mouse at the center of the screen
Diffstat (limited to 'sources/TZR_Init.c')
-rw-r--r-- | sources/TZR_Init.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |