Basically, I want to add some touch controls to my games, but hide the interface for touch when someone is using a web browser (since they can just use assigned keys).
SO the way I would imagine the code would work would be like “Is player on mobile? if so show touch control interface”
Otherwise, it’s hidden and unusable on the web browser.
An example of this would be basically putting the arrow keys on the window for mobile users to replace the inputs that would be found on a keyboard/controller.
Here is are some visual examples.