- From: Matt Reynolds <notifications@github.com>
- Date: Wed, 20 Nov 2019 17:05:03 -0800
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/gamepad/pull/123/review/320585184@github.com>
nondebug 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 This suggests that we can't make Gamepad a live object and allow the number of buttons or axes to change. This would diverge from the original spec, but is probably not important since I don't think there are any implementations that support this behavior. I'll remove the language about changes to the length of the buttons and axes arrays. -- 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_r348852438
Received on Thursday, 21 November 2019 01:05:05 UTC