Fullscreen Libgdx HTML5 not working on mobile
问题 My function to toggle fullscreen: public void toggleFullScreen() { if(!Gdx.graphics.isFullscreen()) Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode()); else Gdx.graphics.setWindowedMode(App.WIDTH, App.HEIGHT); } Works on desktop but not on mobile, why? 回答1: Does not work because the functionality is not supported by libgdx' HTML backend. Could be changed, you should open an issue or PR. EDIT: After checking the backend source code, I must change my statement on SO. The code is in