mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +00:00
19 lines
770 B
Text
19 lines
770 B
Text
// https://w3c.github.io/gamepad/#dom-gamepad
|
|
[Exposed=Window]
|
|
interface Gamepad {
|
|
[FIXME] readonly attribute DOMString id;
|
|
[FIXME] readonly attribute long index;
|
|
[FIXME] readonly attribute boolean connected;
|
|
[FIXME] readonly attribute DOMHighResTimeStamp timestamp;
|
|
[FIXME] readonly attribute GamepadMappingType mapping;
|
|
[FIXME] readonly attribute FrozenArray<double> axes;
|
|
[FIXME] readonly attribute FrozenArray<GamepadButton> buttons;
|
|
[FIXME] readonly attribute FrozenArray<GamepadTouch> touches;
|
|
[FIXME, SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
|
|
};
|
|
|
|
// https://w3c.github.io/gamepad/#idl-def-navigator-partial-1
|
|
[Exposed=Window]
|
|
partial interface Navigator {
|
|
sequence<Gamepad?> getGamepads();
|
|
};
|