Hello all, I’ve been working on a 3D first person game using OpenFL, and I’ve been wondering if it’s possible to lock the mouse to the center and hide it in the HTML5 target, to simulate mouselook. I’ve managed to do this in the native targets by using Mouse.hide and Mouse.warp, but the Mouse.warp function is apparently empty in the HTML5 Lime backend.
Is it possible to somehow use the canvas Pointer lock API in conjuction with Mouse.warp to simulate this? I’ve tried doing
`Browser.document.getElementById(“openfl-content”).getElementsByTagName(“canvas”).item(0).requestPointerLock();
but to no avail.