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

My screen is 2K, and I set mobile blemouse move(200, 0);The actual position is incorrect. #43

Open
bbhxwl opened this issue Sep 8, 2022 · 2 comments

Comments

@bbhxwl
Copy link

bbhxwl commented Sep 8, 2022

I set 100, and he moves to the right. I set 200, and he moves to the left. Why?

@T-vK
Copy link
Owner

T-vK commented Sep 8, 2022

Because a mouse is neither aware of your screen resolution, nor aware of your current mouse position. It doesn't even know the amount of pixels it will move for each unit because that is configured on the OS level.

x and y are signed chars which means you can't go beyond 127. If you do it anyway you'll get unexpected behavior as explained in the link. If you want to move the cursor further, you need to call the move method multiple times.

@bbhxwl
Copy link
Author

bbhxwl commented Sep 9, 2022

I see. You can only enter 127 at most

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants