- From: Matt Reynolds <notifications@github.com>
- Date: Mon, 25 Oct 2021 17:27:11 -0700
- To: w3c/pointerlock <pointerlock@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 26 October 2021 00:27:24 UTC
> Based on some feedback, implementing this properly on all the platforms can be tricky. Linux for example has several ways to control acceleration. And I'm not sure even about MacOS. @smaug---- Chrome implements the option on Windows, macOS, and Chrome OS. On Windows and macOS we don't need to modify any system-wide settings. **Windows**: Use the [Raw Input](https://docs.microsoft.com/en-us/windows/win32/inputdev/raw-input) API to receive WM_INPUT notifications. [RAWMOUSE](https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-rawmouse) contains linear unaccelerated pointer data. **macOS**: Read CGEvent's kCGEventUnacceleratedPointerMovementX and kCGEventUnacceleratedPointerMovementY fields which are populated on 10.14+ but only declared in the SDK starting from 10.15.1. No solution for Linux yet. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/pointerlock/issues/36#issuecomment-951444364
Received on Tuesday, 26 October 2021 00:27:24 UTC