[w3c/gamepad] Add a means to test the API (Issue #175)

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.

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.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/issues/175
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/issues/175@github.com>

Received on Monday, 12 December 2022 01:30:50 UTC