Currently, you’ll need to use #If __TARGET__=”ios” etc. __TARGET__ is one of: “window”, “macos”, “linux”, “emscripten”, “android” or “ios”
There’s also __DESKTOP_TARGET__, __MOBILE_TARGET__ and __WEB_TARGET__ booleans, eg:
#If __DESKTOP_TARGET__ ‘windows, macos or linux
#Elseif __MOBILE_TARGET__ ‘android or ios
#Elseif __WEB_TARGET__ ’emscripten or wasm
#Else
#Print “IMPOSSIBLE!”
#Endif
This doesn’t allow for everything yet, eg: you can’t tell if a __WEB_TARGET__ has touch input (although you could set a flag if you detect any tough events) or if keyboard/mouse etc are unplugged.