These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
15 lines
698 B
Text
15 lines
698 B
Text
// https://w3c.github.io/gamepad/#dom-gamepadevent
|
|
[Exposed=Window]
|
|
interface GamepadEvent : Event {
|
|
// eventInitDict is not marked as optional in the specification, but existing implementations treat it as optional.
|
|
// See: https://github.com/w3c/gamepad/pull/217
|
|
constructor(DOMString type, optional GamepadEventInit eventInitDict = {});
|
|
[SameObject] readonly attribute Gamepad? gamepad;
|
|
};
|
|
|
|
// https://w3c.github.io/gamepad/#dom-gamepadeventinit
|
|
dictionary GamepadEventInit : EventInit {
|
|
// This is marked as required in the specification, but existing implementations treat it as optional.
|
|
// See: https://github.com/w3c/gamepad/pull/217
|
|
Gamepad? gamepad = null;
|
|
};
|