From ad91bd6164a6131035631e7982a5072ba1734cc7 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 21 Jan 2025 19:08:50 +0200 Subject: [PATCH] _cleanup --- Source/Engine/Platform/SDL/SDLInput.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/Engine/Platform/SDL/SDLInput.cpp b/Source/Engine/Platform/SDL/SDLInput.cpp index a7f796d5e..28c5c34cb 100644 --- a/Source/Engine/Platform/SDL/SDLInput.cpp +++ b/Source/Engine/Platform/SDL/SDLInput.cpp @@ -514,12 +514,6 @@ bool SDLInput::HandleEvent(SDLWindow* window, SDL_Event& event) else { const Float2 mousePos = window->ClientToScreen({ event.motion.x, event.motion.y }); - Int2 p; - Float2 wp = window->ClientToScreen({0, 0}); - //SDL_GetWindowPosition(window->GetSDLWindow(), &p.X, &p.Y); - p.X = wp.X; - p.Y = wp.Y; - //LOG(Info, "motion {},{}, mouse: {}, win: {}, winpos {},{}", event.motion.x, event.motion.y, mousePos, String(window->GetTitle()), p.X, p.Y); Input::Mouse->OnMouseMove(mousePos, window); } return true;