[webkit-dev] New feature flag proposal: Joystick API

Alex Russell slightlyoff at google.com
Wed Aug 24 16:48:45 PDT 2011


On Wed, Aug 24, 2011 at 8:36 AM, Scott Graham <scottmg at chromium.org> wrote:
> Hi,
>
> I wanted to let everyone know that I propose to add a new feature
> flag, JOYSTICK. http://webkit.org/b/66859
>
> This flag will enable an API and events for accessing joysticks and
> related devices. There's a prototype effort happening in Mozilla also
> (https://wiki.mozilla.org/JoystickAPI), and the design is intended to
> be similar.

The API they're advocating for over in mozilla-land is strange. Why
not an <input> type or other element with DOM events firing from it?
Handling connection/disconnection seems like it shouldn't be necessary
in the common case. Further API can be then hung off of the element,
avoiding warts like permission prompts in most cases.

> As it will not necessarily make sense for all ports, nor be
> implemented immediately in all ports, a feature flag seems
> appropriate.
>
> Please let me know if you have any concerns or comments.
>
> Thanks
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>


More information about the webkit-dev mailing list