As a pet project I've been working on getting the Gamepad API [1] working on Mac platforms. In my spare time I hope to start landing patches towards that effort. The very first thing I had to do is bring the existing Gamepad API code up to spec, as it's languished for over 3 years and doesn't resemble the current working draft. Then I'll build on that adding a better platform abstraction layer that can support both WK1 and WK2, and include a preliminary Mac implementation. I'll file individual bugs for individual patches, and this bug can be considered an umbrella. [1] - http://www.w3.org/TR/gamepad/
<rdar://problem/17307745>
Filed https://bugs.webkit.org/show_bug.cgi?id=134108 to deprecate the existing implementation.
FIled https://bugs.webkit.org/show_bug.cgi?id=134165 to land skeleton interface and implementation files for the current API.
Filed https://bugs.webkit.org/show_bug.cgi?id=134255 to enable the feature build on Mac, but completely hiding it behind a runtime setting.
Again with the Shader thing, ugh.
Filed https://bugs.webkit.org/show_bug.cgi?id=134325 to add new platform gamepad abstractions Filed https://bugs.webkit.org/show_bug.cgi?id=134324 to add a HID-based implementation of those platform abstractions on Mac, and actually get the API working in-process.
Filed https://bugs.webkit.org/show_bug.cgi?id=134348 to remove the use of PlatformStrategies
Filed https://bugs.webkit.org/show_bug.cgi?id=134374 for HIDGamepadProvider to stop listening if nobody is interested. Filed https://bugs.webkit.org/show_bug.cgi?id=134375 for Gamepad interaction to cause gamepads to become visible to NavigatorGamepad objects
Filed https://bugs.webkit.org/show_bug.cgi?id=134381 for HIDGamepads to populate initial input values
Filed https://bugs.webkit.org/show_bug.cgi?id=134386 for firing connected/disconnected events.
Filed https://bugs.webkit.org/show_bug.cgi?id=134671 for layout test support.
Filed https://bugs.webkit.org/show_bug.cgi?id=134675 to track WebKit2 support