Skip to content

Commit

Permalink
chore: remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed Jun 12, 2024
1 parent 7eface5 commit 24b9db0
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/platform/windows/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand All @@ -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;

Expand All @@ -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 };
Expand Down

0 comments on commit 24b9db0

Please sign in to comment.