Skip to content

Mouse relative mode still broken on MacOS 12.4 #5976

Closed

Description

@fhoenig

referring to: #5340

When I enable relative mode, the mouse cursor is hidden correctly. However it stops at the edge of the screen.
I've tried all combinations of hints.

When I manually set the mouse cursor to the window center, it works while the cursor is visible. However not when it is hidden via set relative mode.

Possibly a hardened runtime / macos "security feature" ?

Activity

  1. added this to the 2.24.0 milestone on Jul 30, 2022
  2. slouken commented on Jul 30, 2022

    @slouken
    Collaborator

    Can you try testsprite2 --info event_motion, and then hit Ctrl-R to enter relative mode?
    I'm seeing relative mode working correctly, not bounded by the edge of the screen.

    Does it work in your application if you disable hardened runtime?

  3. added
    waiting
    on Aug 2, 2022
  4. icculus commented on Aug 2, 2022

    @icculus
    Collaborator

    @fhoenig We're wrapping up the milestone here, if you get a chance to try this without hardened runtime soon, we can try to figure something out for 2.24.0.

  5. fhoenig commented on Aug 2, 2022

    @fhoenig
    Author

    Hey! I haven't got the time to try this yet. But I did notice one thing: relative still seems to work. I have reduced the issue to the fact that you cannot set the cursor position of a hidden mouse. since SDL docs state this behavior to undefined, I think you can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

waiting

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions