Skip to content

Instantly share code, notes, and snippets.

View TBubba's full-sized avatar
🐜

Jesper Gustafsson TBubba

🐜
View GitHub Profile
@TBubba
TBubba / PointerLockControls.ts
Created January 29, 2020 17:54
ThreeJS PointerLockControls in TypeScript
/**
* ThreeJS's PointerLockControls in TypeScript ( by https://github.com/TBubba ).
*
* NOTE: I have barely tested this so it may contain bugs that are not in the original or otherwise not be fully compatible with it.
*
* Original: https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/PointerLockControls.js
*
* @author mrdoob / http://mrdoob.com/
* @author Mugen87 / https://github.com/Mugen87
*/