Skip to content

CursorState::Grab does not report mouse delta on macOS #165

@mystal

Description

@mystal

You still get MouseMoved events with the absolute position of the mouse, but it does not change. As a result, it's kind of useless. According to macOS documentation, you should instead check for deltaX and deltaY on the NSEvent.

As far as I can tell, winit doesn't currently report the mouse cursor delta in any events. I think it makes sense to add the mouse delta to the MouseMoved event. Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    D - averageLikely as difficult as most tasks hereDS - appkitAffects the AppKit/macOS backendH - help wantedSomeone please save usP - normalGreat to haveS - platform parityUnintended platform differences

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions