I have been working on a 3D environment in WEB GL using three.js, previously using orbitcontrols.js as shown in this project: http://codepen.io/nireno/pen/cAoGI. Recently, I came across a different method of navigating the environment using the W, A, S, D keys, similar to a first-person shooter game, as demonstrated here: . However, implementing this new functionality caused me to lose the ability to navigate with the mouse while using orbitcontrols.js. I have tried using a custom update function as suggested in the link, but it did not solve the issue.
My question is, is there a way to have both functionalities simultaneously? I would like to be able to navigate the environment using both the keyboard keys and the mouse to move the camera.
Thank you.