Controlling the web with a PS5 controller
summary
Browser demo adds PS5 controller support to web games by switching from the Gamepad API (polling loop at 300 ms polling causing lag and no haptic/LED feedback) to the WebHID API, which requires explicit user permission, open/close and vendor/product filters. The WebHID flow reads input reports and sends output/feature reports; the presenter changes the light bar (successfully to green then blue) by writing RGB bytes 45–47. Demos include snake, Mario and a 13KB racing game; works but live demos are flaky and WebHID is Chromium-only and carries raw-data security risks.
AI-written summary · about
chapters (16)
- 0:00Introduction and demo
- 1:30Talk overview and resources
- 2:32Speaker introduction
- 3:35APIs and Web APIs
- 5:43GamePad API explained
- 8:13GamePad API limitations
- 11:05Web HID API introduction
- 13:15Connecting devices with Web HID
- 15:42HID interface and reports
- 18:35Handling input reports
- 20:19Sending output reports
- 22:10Event listeners and connection
- 23:37Browser support and security
- 25:45Live demo with PS5 controller
- 27:10Additional projects and resources
- 28:13Q&A
related talks
20mThe web can be weird
46mMonsters, lightbulbs and robots: having fun with WebBluetooth
29mMIDI A New Dimension in Controlling Your Browser
19mHardware Hacking for JS Developers
55mThe Universal Serial Web
50mWebHID API: Controlling Almost Anything from the Browser
29mFun with Bluetooth
28mReal world, real devices, how to?
