Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement move_by #23

Open
LightSrc opened this issue Jun 26, 2023 · 2 comments
Open

Implement move_by #23

LightSrc opened this issue Jun 26, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@LightSrc
Copy link

This function would move mouse by x, y. Instead of moving mouse absolute it would move relative.

@AltF02
Copy link
Owner

AltF02 commented Aug 1, 2023

Should be simple enough, subtracting the current position I guess?

@AltF02 AltF02 added enhancement New feature or request good first issue Good for newcomers labels Aug 1, 2023
circles-png added a commit to circles-png/mouse-rs that referenced this issue Aug 19, 2023
@LightSrc
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants