Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a means to test the API #175

Open
marcoscaceres opened this issue Dec 12, 2022 · 0 comments
Open

Add a means to test the API #175

marcoscaceres opened this issue Dec 12, 2022 · 0 comments
Labels
TPAC2024 Topic for discussion at TPAC 2024

Comments

@marcoscaceres
Copy link
Member

marcoscaceres commented Dec 12, 2022

The API is not currently testable for interop because it's obviously not possible always have a physical Gamepad available (and being pressed) in a continuous integration environment.

It would be great if the spec provided a Web Driver API that allowed:

  • connecting a mock gamepad, and specifying or overriding a limited set of details (e.g., id and mapping).
  • disconnecting a mock gamepad.
  • setting button values on a mock gamepad.
  • setting the axis values on a mock gamepad.
  • setting possibly other supported aspects of the gamepad.

Once updated, calling getGamepads() would return the updated snapshot of the mock gamepads.

Out of scope would be to provide a means to "playback" a set of button presses.

@nondebug nondebug added the TPAC2024 Topic for discussion at TPAC 2024 label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TPAC2024 Topic for discussion at TPAC 2024
Projects
None yet
Development

No branches or pull requests

2 participants