Switch Runtime
Input & Sensors
Gamepad, touch and motion controls
Gamepad
Joy-Cons and Pro Controllers surface through the standard Gamepad API
(navigator.getGamepads()). Buttons and axes follow the standard mapping, so
gamepad-aware web games generally work unmodified.
Touch
The Switch touchscreen fires standard Touch events (and pointer events). Touch only works in handheld mode.
Motion / orientation
DeviceOrientationEvent is implemented to W3C spec, mapped to the Switch's landscape physical frame and verified against real hardware. Tilting the console upright reports β=+90°, and rolling right reports γ=−90°, exactly as a phone in landscape would.
Keyboard
The on-screen keyboard is available for text input.

Brewser Docs