w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
142 stars 48 forks source link

Add a means to test the API #175

Open marcoscaceres opened 1 year ago

marcoscaceres commented 1 year ago

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:

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.