Files
@ r24440:3295012a081c
Branch filter:
Location: cpp/openttd-patchpack/source/src/sound/sdl_s.cpp
r24440:3295012a081c
2.0 KiB
text/x-c
Add: [Emscripten] use "relative mouse mode" with SDL2
This mode doesn't wrap the mouse constantly, but requests SDL
to lock the mouse pointer. This is needed, as with Emscripten
you are not allowed to change the mouse poisition (only to lock
it into place).
This mode doesn't wrap the mouse constantly, but requests SDL
to lock the mouse pointer. This is needed, as with Emscripten
you are not allowed to change the mouse poisition (only to lock
it into place).