Bug 214126 - Multiplex the HID and GameController gamepad providers on Mac
Summary: Multiplex the HID and GameController gamepad providers on Mac
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-08 23:38 PDT by Brady Eidson
Modified: 2020-07-09 18:28 PDT (History)
1 user (show)

See Also:


Attachments
Patch (29.71 KB, patch)
2020-07-08 23:50 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (29.80 KB, patch)
2020-07-09 08:45 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (29.89 KB, patch)
2020-07-09 08:48 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (29.84 KB, patch)
2020-07-09 09:05 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (30.07 KB, patch)
2020-07-09 09:30 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (30.07 KB, patch)
2020-07-09 09:52 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (31.51 KB, patch)
2020-07-09 10:43 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (31.57 KB, patch)
2020-07-09 10:50 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (32.62 KB, patch)
2020-07-09 11:54 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (32.64 KB, patch)
2020-07-09 12:05 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (32.60 KB, patch)
2020-07-09 12:26 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (32.64 KB, patch)
2020-07-09 12:30 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (32.92 KB, patch)
2020-07-09 12:45 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (33.05 KB, patch)
2020-07-09 13:04 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (33.29 KB, patch)
2020-07-09 13:19 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (30.86 KB, patch)
2020-07-09 13:37 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (37.74 KB, patch)
2020-07-09 14:22 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Patch (37.86 KB, patch)
2020-07-09 14:31 PDT, Brady Eidson
thorton: review+
Details | Formatted Diff | Diff
PFL (41.89 KB, patch)
2020-07-09 17:41 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2020-07-08 23:38:46 PDT
Multiplex the HID and GameController gamepad providers on Mac

Both providers have worked fine on Mac for awhile.

By teaching WebKit how to use both at the same time, we get more gamepads, and better support for GameController.framework devices
Comment 1 Brady Eidson 2020-07-08 23:41:14 PDT
<rdar://problem/63192532>
Comment 2 Brady Eidson 2020-07-08 23:50:34 PDT
Created attachment 403848 [details]
Patch
Comment 3 Brady Eidson 2020-07-09 08:45:20 PDT
Created attachment 403870 [details]
Patch
Comment 4 Brady Eidson 2020-07-09 08:48:10 PDT
Created attachment 403871 [details]
Patch
Comment 5 Brady Eidson 2020-07-09 09:05:53 PDT
Created attachment 403872 [details]
Patch
Comment 6 Brady Eidson 2020-07-09 09:30:44 PDT
Created attachment 403877 [details]
Patch
Comment 7 Brady Eidson 2020-07-09 09:52:39 PDT
Created attachment 403878 [details]
Patch
Comment 8 Brady Eidson 2020-07-09 10:43:49 PDT
Created attachment 403888 [details]
Patch
Comment 9 Brady Eidson 2020-07-09 10:50:27 PDT
Created attachment 403889 [details]
Patch
Comment 10 Brady Eidson 2020-07-09 11:54:43 PDT
Created attachment 403896 [details]
Patch
Comment 11 Brady Eidson 2020-07-09 12:05:00 PDT
Created attachment 403901 [details]
Patch
Comment 12 Brady Eidson 2020-07-09 12:26:14 PDT
Created attachment 403903 [details]
Patch
Comment 13 Brady Eidson 2020-07-09 12:30:30 PDT
Created attachment 403904 [details]
Patch
Comment 14 Brady Eidson 2020-07-09 12:45:29 PDT
Created attachment 403905 [details]
Patch
Comment 15 Brady Eidson 2020-07-09 13:04:25 PDT
Created attachment 403907 [details]
Patch
Comment 16 Brady Eidson 2020-07-09 13:19:29 PDT
Created attachment 403910 [details]
Patch
Comment 17 Brady Eidson 2020-07-09 13:29:00 PDT
This is intolerable.

The IOKitSPI.h header is bizarrely kinda cross platform but not really.

Forget it. Doing something else.
Comment 18 Brady Eidson 2020-07-09 13:37:58 PDT
Created attachment 403912 [details]
Patch
Comment 19 Brady Eidson 2020-07-09 14:22:36 PDT
Created attachment 403919 [details]
Patch
Comment 20 Brady Eidson 2020-07-09 14:31:25 PDT
Created attachment 403920 [details]
Patch
Comment 21 Tim Horton 2020-07-09 15:54:40 PDT
Comment on attachment 403920 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=403920&action=review

> Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.h:59
> +    void makeInvisibileGamepadsVisible();

s.p. invisibile
Comment 22 Brady Eidson 2020-07-09 17:41:31 PDT
Created attachment 403936 [details]
PFL
Comment 23 EWS 2020-07-09 18:28:02 PDT
Committed r264207: <https://trac.webkit.org/changeset/264207>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 403936 [details].