- From: Matt Reynolds <notifications@github.com>
- Date: Thu, 11 Jul 2024 12:46:52 -0700
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 July 2024 19:46:56 UTC
If I remember correctly, we decided on maplike interfaces for the `surfaceId` -> `GamepadSurface` and `touchId` -> `sequence<GamepadTouch>` maps. I think it should look something like this:
```
dictionary GamepadTouch {
Float32Array position;
};
interface GamepadTouchMap {
readonly maplike<unsigned long, sequence<GamepadTouch>>;
};
dictionary GamepadSurface {
GamepadTouchMap touches;
Uint32Array surfaceDimensions;
};
interface GamepadSurfaceMap {
readonly maplike<octet, GamepadSurface>;
};
interface Gamepad {
...
readonly attribute GamepadSurfaceMap surfaces;
...
};
```
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/198#issuecomment-2223761557
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/gamepad/pull/198/c2223761557@github.com>
Received on Thursday, 11 July 2024 19:46:56 UTC