don kaka
don kaka

Reputation: 1229

Pointerlock without fullscreen API

How is it possible, to use pointerlock without fullscreen mode?

The tutorials on the web uses the fullscreen api too: https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock

Upvotes: 0

Views: 317

Answers (1)

Derek 朕會功夫
Derek 朕會功夫

Reputation: 94299

http://jsfiddle.net/DerekL/wbhsP/

Just call requestPointerLock on a user action. It doesn't require the element to be fullscreen.

Upvotes: 1

Related Questions