Skip to content

macOS: use GCMouse for raw unaccelerated mouse motion #4581

@cxcubehd

Description

@cxcubehd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions