three-pointerlock
This is an adaptation of three.js' PointerLockControls to a common js module, based itself on three.fly.
usage
// 1. Create pointer lock controls:var PointerLockControls = ;var controls = camera;// 2. Inside your update scene loop (e.g. inside requestAnimationFrame()):controls; // `1` is time delta.
install
With npm do:
npm install three-pointerlock
license
MIT