mouse-rs
mouse-rs copied to clipboard
Implement move_by
This function would move mouse by x, y. Instead of moving mouse absolute it would move relative.
Should be simple enough, subtracting the current position I guess?
It would be more efficient to send a relative mouse event to just move the mouse along the X-axis and Y-axis, rather than retrieving the current mouse position. This approach is preferable because it avoids issues when trying to move the mouse for example within a virtual desktop.