Skip to content

Implement non-XR gamepad discovery and input #31179

Closed

Description

@msub2

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.

Activity

  1. added
    A-content/dom
    A-constellation
    on Jan 26, 2024
  2. changed the title [-]Fully Implement Gamepad API[/-] [+]Implement non-XR gamepad discovery and input[/+] on Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-constellationA-content/domA-embedding

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions