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 };