The Gamepad API added ongamepadconnected and ongamepaddisconnected event handler attributes as part of: https://github.com/w3c/gamepad/pull/144/ A patch is ready for Gecko, plus there is a commitment to add them to Blink also. Would be great to have them added to WebKit too.
<rdar://problem/76205058>
Pull request: https://github.com/WebKit/WebKit/pull/1570
Committed 252331@main (57f8b6aa6920): <https://commits.webkit.org/252331@main> Reviewed commits have been landed. Closing PR #1570 and removing active labels.