integrating https://github.com/danielribeiro/WebGLCraft/pull/1/files into pointer lock