You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently sapp_toggle_fullscreen is not implemented for HTML5 backend, however emscripten has the functions emscripten_request_fullscreen and emscripten_enter_soft_fullscreen which could be used to implement it.
Yeah I'm aware of those functions (and IIRC actually used them in early sokol_app.h versions), but had a lot of trouble in the past because fullscreen implementation details differ a lot between browsers (and IIRC iOS Safari didn't support fullscreen at all for a long time). One problem I remember was that the fullscreen security popup clashes with mouse-lock security popup which made UX a mess.
There's also left-over comment which hints at some of the problems I ran into:
I see, I managed to workaround by adding some JavaScript code in the web frontend, so this problem can be solved in outside the sokol_app.h. Thus consider this low priority.
Currently
sapp_toggle_fullscreen
is not implemented for HTML5 backend, however emscripten has the functionsemscripten_request_fullscreen
andemscripten_enter_soft_fullscreen
which could be used to implement it.There is an example if it in https://github.com/emscripten-core/emscripten/blob/main/test/test_html5_fullscreen.c
The text was updated successfully, but these errors were encountered: