Re: [w3c/gamepad] Need to spec liveness of Gamepad objects (#8)

There's some relevant discussion in [Intent to Ship: WebXR Gamepad Module](https://groups.google.com/a/chromium.org/d/msg/blink-dev/Nvll21RaKwM/7Hh_OjOpDgAJ) on blink-dev.

It sounds like because the number of buttons don't change, the `buttons` could keep returning the same array every time, and could be decorated with `[SameObject]`. The `GamepadButton` objects are what would change, at some well defined time. Maybe that's at every microtask checkpoint, top of the event loop or rendering frame, as long as it doesn't change while script is running anything is probably web compatible.

If `axes` needs to change it would however need to return a new array, so that can't be given the `[SameObject]` extended attribute.

-- 
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/issues/8#issuecomment-542561311

Received on Wednesday, 16 October 2019 07:23:05 UTC