Is there a way to know if we run inside browser, mobile or standalone versions ?
We have the quit function but i only like to display "Quit" in my main menu for certain "builds". For example i do not want it displayed when the game is running inside a browser / html page, however i do want it displayed when the game is running as a standalone linux / mac / windows app and potentially android apk.
Is there a way to detect this or does the build systems set a specific flag so we can identify where we are running from ?
I have a similar question for Mobile / non mobile detection. Suppose i create some virtual controls for android version i need to be able to detect this to only show it on android version or in browser if it is detected that the browser is ran on a phone or so