From beb44f1dacce8aef0df3740e341582ca79e040e1 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 15 Feb 2023 13:11:26 +0100 Subject: [PATCH] Avoid centering mouse when program launches --- src/rcore.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rcore.c b/src/rcore.c index 0c4691eba..3de0f3f3c 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -924,8 +924,6 @@ void InitWindow(int width, int height, const char *title) emscripten_set_gamepaddisconnected_callback(NULL, 1, EmscriptenGamepadCallback); #endif - SetMousePosition(CORE.Window.screen.width/2, CORE.Window.screen.height/2); - #if defined(SUPPORT_EVENTS_AUTOMATION) events = (AutomationEvent *)malloc(MAX_CODE_AUTOMATION_EVENTS*sizeof(AutomationEvent)); CORE.Time.frameCounter = 0;