Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locking cursor on macOS stops dx dy #64

Open
dapetcu21 opened this issue Feb 21, 2018 · 0 comments
Open

Locking cursor on macOS stops dx dy #64

dapetcu21 opened this issue Feb 21, 2018 · 0 comments

Comments

@dapetcu21
Copy link
Collaborator

After calling defos.set_cursor_locked(true) on macOS, Defold doesn’t receive dx/dy events anymore. I suspect it’s because Defold’s input code diffs mouse positions instead of using NSEvent.deltaX and NSEvent.deltaY.

I tried locking the cursor both by calling CGAssociateMouseAndMouseCursorPosition(false) and by repeatedly setting the mouse position to the same point each frame with CGWarpMouseCursorPosition() and I got the same results.

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

No branches or pull requests

1 participant