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

Require pointer lock when setmousepos is called repeatedly #17

Open
pdjstone opened this issue Sep 27, 2024 · 0 comments
Open

Require pointer lock when setmousepos is called repeatedly #17

pdjstone opened this issue Sep 27, 2024 · 0 comments

Comments

@pdjstone
Copy link
Owner

pdjstone commented Sep 27, 2024

Currently in setmousepos, a pointer lock is only requested if the mouse cursor isn't visible, or if the mouse and pointer aren't linked.

For now, if setmousepos is called when the cursor is visible and we're using absolute mouse positioning, then it's basically ignored since the absolute mouse position overrides the requested position. That generally doesn't cause problems when a program just wants to centre the pointer once.

However if a program is changing the mouse position repeatedly/continuously then we should switch to relative mouse mode.

Programs that currently cause issues:

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