Description
winit currently exposes relative mouse movement through DeviceEvent::MouseMotion. On macOS, this appears to be based on AppKit/NSEvent mouse deltas, which may be affected by the system’s pointer acceleration/scaling.
Apple’s GameController framework provides GCMouseInput, which exposes raw mouse movement deltas on macOS 11+. SDL3 already added support for this path for relative mouse motion, while keeping the existing NSEvent path as a fallback for older macOS versions.
Would winit be open to using GCMouseInput on macOS 11+ for DeviceEvent::MouseMotion, with the current NSEvent behavior retained as fallback?
Related SDL3 references:
The intended scope would be limited to relative motion deltas.
Relevant platforms
macOS
Description
winit currently exposes relative mouse movement through
DeviceEvent::MouseMotion. On macOS, this appears to be based on AppKit/NSEvent mouse deltas, which may be affected by the system’s pointer acceleration/scaling.Apple’s GameController framework provides
GCMouseInput, which exposes raw mouse movement deltas on macOS 11+. SDL3 already added support for this path for relative mouse motion, while keeping the existing NSEvent path as a fallback for older macOS versions.Would winit be open to using
GCMouseInputon macOS 11+ forDeviceEvent::MouseMotion, with the current NSEvent behavior retained as fallback?Related SDL3 references:
The intended scope would be limited to relative motion deltas.
Relevant platforms
macOS