-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
negative mouse coordinates returned as 2^64 #15
Comments
Good find! I actually never tested in a multi-monitor set up. I'll check it out and let you know what I figure out! |
yup, I see this as well. On one external monitor:
and on the other external monitor:
|
I think related to this, I'm getting a
|
Seems js doesn't have signed and unsigned numbers. Converting all numbers to a uniform 64 bit format will help I guess. Will have to check it out |
This should fix the getMousePos returning negative values in extended displays
This reverts commit c9b3e9b.
This fixes the issue where negative values were being returned from getMousePos. This seems to be an issue with the Number format.
This should fix the issue of getting negative values in extended displays.
This should fix the issue of negative values being returned when calling getMousePos on extended displays
This has been fixed in #48 which has been merged. I'll publish to npm later today. |
Thanks! :] |
When using multiple screens, zero is defined as top left of the main screen, which means that everything to it's left/top should have negative x/y coordinates accordingly. However, those are returned as 2^64.
This image shows the output of the script below as I move the mouse to the left-most screen, and then to the top of it. (
node index.js >> data.txt
andtail -f data.txt
)Could this simply be a problem with integers becoming unsigned in the C code?
The text was updated successfully, but these errors were encountered: