Mouse#requestPointerLock()

requestPointerLock()

If the browser supports it you can request that the pointer be locked to the browser window.
This is classically known as 'FPS controls', where the pointer can't leave the browser until the user presses an exit key.
If the browser successfully enters a locked state the event Phaser.Mouse.pointerLock will be dispatched and the first parameter will be 'true'.

Source code: input/Mouse.js (Line 533)
doc_phaser
2017-02-14 10:55:25
Comments
Leave a Comment

Please login to continue.