Gamepad: move the ball
A Tcl script in this page reads the game controllers with web::gamepad::poll about 60 times a second. The left stick moves the ball, and the first button makes it big. The script runs in ztcl-host.wasm with the grants dom, event, and web:gamepad.
Buttons down:
A browser shows a controller to the page only after a press of a button on it. The script is below, and the guide to gamepads tells how it works.