Summary: In order to support controllers which have multi touch and light bar features like Sony DualShock 4. The `*multi touch*` and `*light indicator*` APIs for gamepad extensions are the things we must have. In `*GamepadTouch*` API, it would make us know touch surface's dimension and its unique id. We also will have a way to know where is the place we are touching according to its position and the unique id. Regarding to `*GamepadLightIndicator*`, it could tell users the color of controller's light bar. The color is a 8-bit size integer for defining `*red*`, `*green*`, `*blue*`, or other colors to indicate the on-off light indicator is ON.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1523350 Link to standard: W3C Multi touch spec proposal: https://github.com/knyg/gamepad/blob/multitouch/extensions.html W3C Light indicator spec proposal: https://github.com/knyg/gamepad/blob/lightindicator/extensions.html Platform coverage: Windows, Mac OS, Linux Estimated or target release: Firefox 68 Preference behind which this will be implemented: "dom.gamepad.extensions.multitouch" and "dom.gamepad.extensions.lightindicator" Do other browser engines implement this? Nope web-platform-tests: none exist (and I don't plan to write WPTs but we do have gamepad mochitest, I will add new tests to cover these two new APIs.) Is this feature restricted to secure contexts? Nope How stable is the spec? This is a proposal from a vendor, I suppose it would be some minor adjustments coming when other developers start to implement it. I would suggest to make it pref'd off by default until this proposal be merged to w3c's branch. -- Daosheng Mu Software Engineer | Mozilla d...@mozilla.com _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform