- From: Marcos Cáceres <notifications@github.com>
- Date: Wed, 20 Nov 2019 20:30:29 -0800
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/gamepad/pull/123/review/320634815@github.com>
marcoscaceres commented on this pull request. > - MUST be returned until the <a>user agent</a> needs to return - different values (or values in a different order). + <p> + Array of {{GamepadButton}} objects representing the current state of + all buttons of the gamepad. It is RECOMMENDED that buttons appear in + decreasing importance such that the primary button, secondary + button, tertiary button, and so on appear as elements 0, 1, 2, ... + in the buttons array. + </p> + <p> + When the system receives new data from a connected gamepad, a + microtask MUST be queued with the user interaction task source to + update the gamepad state. If the gamepad has the same buttons in the + same order as the previous update, the buttons attribute MUST return + the same array object. If the number of buttons or the ordering of + buttons has changed, the buttons attribute MUST return a new array argh... that's not good. @domenic, sorry to drag you in... if you have some cycles, could you suggest how we might proceed? This is a bit a of a pickle :( We might need an array-like object here instead 🤢 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/gamepad/pull/123#discussion_r348892006
Received on Thursday, 21 November 2019 04:30:32 UTC