Archive 17/01/2023.

Emscripten Mouse Capture Issue

nickwebha

Urho3D is having trouble keeping the mouse locked in Emscripten builds. When the (invisible) mouse cursor reaches the edge of the screen it just stops moving further. The result is, in my 3D game, the user can only turn so far in either direction or look up or down so far in either direction.

I have tried the different mouse modes with different results, none of them allowing complete free look.

Here is an example (only works in Chrome right now).

I am using Emscripten 2.0.8 because anything newer will not compile Urho3D.

Miegamicis

Emscripten shell mouse events by ArnisLielturks · Pull Request #2634 · urho3d/Urho3D · GitHub Mouse capture improvements can be found in this PR but there are still some minor issues with it.