Hello, how can I lock cursor in the web build, I have a code and its works well on standalone build, but in web build I need to press mouse button to lock it again after unlocking…
Anyone?
You can’t.
When ever you press ESC in a web player, it will release the cursor. That’s a security thing.
Well, it’s a problem… What should I do with this?
You will possibly have some luck with building for NaCL (“Native Client”) - this is currently a Chrome thing only though and I am not sure how that’ll work for other browsers in the future. Haven’t tested this yet.
Yet browsers are currently implementing cursor lock, Firefox did that lately, but again through a dedicated API using HTML5/JS. So there is no solution which would work out of the box across browsers.
That’s just how it is nowadays, and as element_wsc already mentioned correctly this is mainly due to security policies.
So, bottom line is: Sorry, no chance to do so.