Is this possible, or can FS only be triggered by mouse, keyboard or touch events? I’m not even sure if Gamepads trigger events so this might be a dumb question.
In HTML5 the gamepad connect/disconnect are events (and probably not considered user events) but the rest of the data is done only by polling – so I don’t think it is possible (unfortunately) but it may be worth experimenting
Looks like this is the case, I couldn’t find any kind of gamepad button event in JS.
For those interested, this is the solution I used in my gamepad menu:
Additionally, I might auto-fullscreen on the first click to set focus to the game. Although people may not like that.