We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
locked
1 parent c7e2fbb commit 254f384Copy full SHA for 254f384
1 file changed
src/input/Pointer.js
@@ -438,6 +438,22 @@ var Pointer = new Class({
438
*/
439
this.active = (id === 0) ? true : false;
440
441
+ /**
442
+ * Is this pointer Pointer Locked?
443
+ *
444
+ * Only a mouse pointer can be locked and it only becomes locked when requested via
445
+ * the browsers Pointer Lock API.
446
447
+ * You can request this by calling the `this.input.mouse.requestPointerLock()` method from
448
+ * a `pointerdown` or `pointerup` event handler.
449
450
+ * @name Phaser.Input.Pointer#locked
451
+ * @readonly
452
+ * @type {boolean}
453
+ * @since 3.19.0
454
+ */
455
+ this.locked = false;
456
+
457
/**
458
* The horizontal scroll amount that occurred due to the user moving a mouse wheel or similar input device.
459
*
0 commit comments