Release 19 (Safari 10.1, WebKit 12603.1.14.2) If you plug in a PS4 controller and go to http://html5gamepad.com/ You'll see there is no info for the DPad Firefox 50 gets this correct. Chrome 57 also gets it correct. (Chrome 54 does not)
<rdar://problem/29578619>
Created attachment 299815 [details] Patch
Comment on attachment 299815 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299815&action=review > Source/WebCore/platform/gamepad/mac/HIDGamepad.cpp:216 > + *button++ = value < 2 || value == 7 ? 1.0 : 0.0; This looks like there are no bounds checks. Please do this another way. > Source/WebCore/platform/gamepad/mac/HIDGamepad.h:138 > + Vector<std::unique_ptr<HIDGamepadDPad>> m_dPads; these could be UniqueRef.
Created attachment 299817 [details] Patch
Created attachment 299824 [details] Patch
https://trac.webkit.org/changeset/211220