4 ms·
Would like to add this soon, was slightly fiddly so stuck to keyboard for now. Have got Cardboard support but just as a proof of concept, needs more work :-)
by cjdell 10y ago
Would like to add this soon, was slightly fiddly so stuck to keyboard for now. Have got Cardboard support but just as a proof of concept, needs more work :-)
- Hydraulix989 10y agoClick and drag to look around (I hate it when WebGL demos monopolize the mouse) would be neat and pretty simple to implement! :-)
- cjdell 10y agoMouse input now working thanks to Jason McGhee :-)
- mobiuscog 10y agoWhilst the shift-mouse is horrid, I understand the rationale. At least make the cursor stay in the same postion when this is used, otherwise you have to keep releasing shift, moving the mouse back to the center, and pressing shift again.
- jasonjmcghee 10y agoUnfortunately, you can't move the mouse back to the center. Javascript does not allow hijacking the mouse. I bet you can imagine why. If there's a better way to do this, by all means make a PR. I know this is a dreadful solution, but it's better than nothing. EDIT: I stand corrected! I found a way! PR in. I'm using requestPointerLock
- deleted 10y ago[deleted]
- Hydraulix989 10y agoYes, Unity WebGL uses it as well, pretty sure.