win-mouse
win-mouse copied to clipboard
Mouse tracking for Windows
Add middle mouse button support
I have an application that use SetCursorPos (https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcursorpos) to move programmatically my cursor. Your code doesnt track those mouse movements
We've been having to compensate for situations where a screen isn't set to 100% scaling by dividing the `x` and `y` by `window.devicePixelRatio` (see https://github.com/ThePacielloGroup/CCAe/commit/739de8f284a37cf858e533706b443cbb2f74b892). Wondering if there's a cleaner...