We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unadjustedMovement
lock()
1 parent 88c358b commit 78a0f7eCopy full SHA for 78a0f7e
examples/jsm/controls/PointerLockControls.js
@@ -198,10 +198,15 @@ class PointerLockControls extends Controls {
198
199
/**
200
* Activates the pointer lock.
201
+ *
202
+ * @param {boolean} [unadjustedMovement=false] - Disables OS-level adjustment for mouse acceleration, and accesses raw mouse input instead.
203
+ * Setting it to true will disable mouse acceleration.
204
*/
- lock() {
205
+ lock( unadjustedMovement = false ) {
206
- this.domElement.requestPointerLock();
207
+ this.domElement.requestPointerLock( {
208
+ unadjustedMovement
209
+ } );
210
211
}
212
0 commit comments