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

Dual screen #4

Open
Novivy opened this issue Apr 8, 2020 · 2 comments
Open

Dual screen #4

Novivy opened this issue Apr 8, 2020 · 2 comments

Comments

@Novivy
Copy link

Novivy commented Apr 8, 2020

Setting the resolution with the main screen will still make the cursor try to go "home" on the second screen if the second screen is positionned on the left of the main screen since home is at TOP/LEFT

@per1234
Copy link
Owner

per1234 commented Apr 8, 2020

I don't have any experience working with multiple screens.

Do you have suggestions for how the library could be improved to work better for this usage?

It seems to me the way to do this would be to treat the screens as a single screen, set the resolution according to the combined sizes of the screens, and the coordinates relative to the top left corner of the leftmost screen. In this case, there would be no need to modify the library. Will that solution work for you?

@Novivy
Copy link
Author

Novivy commented May 14, 2020

Sorry for the late answer.

I found why it does behave like this.

If your cursor is in the first half of the screen width positionned (physically) to the right or your desk before calling MoveTo.home, the cursor will go home on the first screen positionned (physically) on the left of your desk.

If the cursor is in the second half and you call MoveTo.home, it will go home on the right screen. Does that make sense?

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