-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add binding for requestPointerLock option unadjustedMovement: true #3862
Comments
Remove the
Probably just a limitation of the parser/generator. In any case I don't believe that this is something we would want in Detecting and handling browser support is something that |
Motivation
Providing the
{ unadjustedMovement: true }
option while callingrequestPointerLock
causes subsequent mouse move events to bypass the OS's mouse acceleration and sensitivity. This is useful for a couple reasons.Proposed Solution
The spec for pointer lock options is unstable so it makes sense to mark this with the unstable flag.
This WebIDL is a start:
but there are currently 2 issues I'm encountering with this solution.
requestPointerLock
is already a stable feature, this generates 2 functions with the same name. Is there a way to override an existing function in unstable?undefined
on unsupported browsers butPromise<undefined>?
returns a parsing error. Any ideas why would this wouldn't work even though there are other functions that return optional values?Any advice on these issues is welcome!
The text was updated successfully, but these errors were encountered: