Is there a way to check the game is running in a mobile or desktop browser. I am working on a platformer game and I need to show on-screen controls if that game is running in mobile browsers.
thanks, i checked sys info “system_name” parameter returns “HTML5” for both mobile and desktop browsers. is there any other flag i need to check to detect the game is running on mobile browsers ?
Have you checked “sys.get_sys_info().user_agent” ?
just checked user_agent, I think it has enough data to detect mobile browsers. Thanks, Mathias, totebo.