Intent to Remove: Prefixed Gamepad

62 views
Skip to first unread message

Brandon Jones

unread,
Dec 16, 2014, 12:27:42 PM12/16/14
to blink-dev

Primary eng (and PM) emails

baj...@chromium.org


Link to “Intent to Deprecate” thread

The decision to deprecate was made in the Gamepad Intent to Ship thread.


Summary

navigator.webkitGetGamepads will be removed, leaving navigator.getGamepads as the only way to interact with gamepad devices.


webkitGetGamepads was deprecated in M35, which went stable in May of 2014.


Motivation

webkitGetGamepads has subtlety different functionality from getGamepads, and is not cross-browser compatible. It also is not receiving any new features or fixes. Removing it forces developers to use the version of the API that has the most browser support and the most comprehensive feature set.

Usage information from UseCounter

https://www.chromestatus.com/metrics/feature/timeline/popularity/291

Usage of the prefixed API is very low: 0.0002%


Entry on chromestatus.com

https://www.chromestatus.com/feature/5118776383111168


Compatibility Risk

Usage of the gamepad API in any form is low, and the prefixed version more so, so there's not much compatibility risk.


There is one Google Doodle that I know of which has not been updated to use the standard API: http://www.google.com/doodles/hurdles-2012 This doodle already lacks gamepad support in other capable browsers, however, like Firefox and IE.





Philip Rogers

unread,
Dec 16, 2014, 2:47:22 PM12/16/14
to Brandon Jones, blink-dev
LGTM

I imagine most of the usage comes from that doodle. Could you contact the doodle group and see if they could update it to work with the new api?

Philip Jägenstedt

unread,
Dec 16, 2014, 6:01:27 PM12/16/14
to Philip Rogers, Brandon Jones, blink-dev
LGTM2
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+...@chromium.org.

Brandon Jones

unread,
Dec 16, 2014, 6:10:53 PM12/16/14
to Philip Rogers, blink-dev
On Tue Dec 16 2014 at 11:47:20 AM Philip Rogers <p...@chromium.org> wrote:
I imagine most of the usage comes from that doodle. Could you contact the doodle group and see if they could update it to work with the new api?

I've let the Doodle team know about the change and will help them with the update if they need it. 

Chris Harrelson

unread,
Dec 17, 2014, 1:54:13 PM12/17/14
to Brandon Jones, Philip Rogers, blink-dev
LGTM3

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

kh...@google.com

unread,
Jan 23, 2015, 7:46:38 PM1/23/15
to blin...@chromium.org, baj...@google.com, p...@chromium.org, chri...@chromium.org
Thanks for the heads up! Doodles with gamepad support have been updated to try navigator.getGamepads first.
http://www.google.com/doodles/slalom-canoe-2012

Tested using a Logitech Gamepad F310
navigator.getGamepads().item(0).id == Logitech Dual Action (STANDARD GAMEPAD Vendor: 046d Product: c216)
Reply all
Reply to author
Forward
0 new messages