~/talk

Controlling the web with a PS5 controller

Talkat Armada JS 2023 · 2023-10-05..10-06· [javascript, web-platform]
slides:none on file

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

  1. 0:00Introduction and demo
  2. 1:30Talk overview and resources
  3. 2:32Speaker introduction
  4. 3:35APIs and Web APIs
  5. 5:43GamePad API explained
  6. 8:13GamePad API limitations
  7. 11:05Web HID API introduction
  8. 13:15Connecting devices with Web HID
  9. 15:42HID interface and reports
  10. 18:35Handling input reports
  11. 20:19Sending output reports
  12. 22:10Event listeners and connection
  13. 23:37Browser support and security
  14. 25:45Live demo with PS5 controller
  15. 27:10Additional projects and resources
  16. 28:13Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.