ladybird/Libraries/LibWeb/Gamepad/GamepadEvent.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

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;
};