From 24b9db0a291602e49dd21bc6fd65e164eec99492 Mon Sep 17 00:00:00 2001 From: Vithorio Polten Date: Tue, 11 Jun 2024 21:01:16 -0300 Subject: [PATCH] chore: remove unnecessary comments --- src/platform/windows/input.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/platform/windows/input.cpp b/src/platform/windows/input.cpp index 41ca189024b..74aba6e09ef 100644 --- a/src/platform/windows/input.cpp +++ b/src/platform/windows/input.cpp @@ -528,21 +528,6 @@ namespace platf { send_input(i); } - /** - * // TODO: This method seems to work better during tests, - but it doesn't seem to cover the same features as the original method - void - abs_mouse(input_t &input, const touch_port_t &touch_port, float x, float y) { - INPUT i {}; - i.type = INPUT_MOUSE; - auto &mi = i.mi; - mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE; - mi.dx = (x * 65535) / GetSystemMetrics(SM_CXSCREEN); - mi.dy = (y * 65535) / GetSystemMetrics(SM_CYSCREEN); - send_input(i); - } - */ - void move_mouse(input_t &input, int deltaX, int deltaY) { INPUT i {}; @@ -551,7 +536,6 @@ namespace platf { auto &mi = i.mi; mi.dwFlags = MOUSEEVENTF_MOVE; - // mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_MOVE_NOCOALESCE; // TODO: Not sure if needed mi.dx = deltaX; mi.dy = deltaY; @@ -560,9 +544,8 @@ namespace platf { util::point_t get_mouse_loc(input_t &input) { - throw std::runtime_error("not implemented"); + throw std::runtime_error("not implemented yet, has to pass tests"); // TODO: Tests are failing, something wrong here? - // syncThreadDesktop(); POINT p; if (!GetCursorPos(&p)) { return util::point_t { 0.0, 0.0 };