Implement non-XR gamepad discovery and input #31179
Labels
A-constellation
Involves the constellation
A-content/dom
Interacting with the DOM from web content
A-embedding
Recently I've been doing some work on Servo's WebXR crate, but while doing that I noticed that the Gamepad API wasn't supported for regular controllers and thought it would be a fun project to take on!
Spec: https://www.w3.org/TR/gamepad/
There is some existing code in Servo already for Gamepads, but it was added for use with WebVR/WebXR and as such doesn't support discovery/communication with regular game controllers. My plan is to utilize GilRs (Game Input Library for Rust) as the backend for gamepad discovery/communication. From my understanding this will also involve creating a new task source for communication with Constellation and handling polling and such on the embedder's event loop.
The text was updated successfully, but these errors were encountered: