Accessing HID Devices on the Web With the WebHID API: How to play the Chrome Dino Game by Jumping With a Nintendo Joy-Con Controller in One's Pocket
Thomas Steiner, Fran\c{c}ois Beaufort

TL;DR
This paper demonstrates how the WebHID API enables web applications to access specialized hardware like Nintendo Joy-Con controllers, allowing users to control browser games through device sensors using JavaScript.
Contribution
It introduces a novel approach for web-based hardware access via WebHID, enabling JavaScript drivers to interact with HID devices like Joy-Con controllers.
Findings
Successful implementation of a Joy-Con driver in JavaScript
Control of Chrome Dino game using Joy-Con accelerometers
Proof of concept for web-based hardware interaction
Abstract
In this demonstration, we show how special hardware like Nintendo Joy-Con controllers can be made accessible from the Web through the new WebHID API. This novel technology proposal allows developers to write Web drivers in pure JavaScript that talk to Human Interface Device (HID) devices via the HID protocol. One such example of a driver has been realized in the project Joy-Con-WebHID, which allows for fun pastimes like playing the Google Chrome browser's offline dinosaur game by jumping. This works thanks to the accelerometers built into Joy-Con controllers whose signals are read out by the driver and used to control the game character in the browser. A video of the experience is available.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsVideo Analysis and Summarization
