зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1465923 [wpt PR 9785] - Update the gamepad IDL file, a=testonly
Automatic update from web-platform-testsUpdate the gamepad IDL file (#9785) -- wpt-commits: 3443ff6e255454aa23182b3765a1f9a2841c6a90 wpt-pr: 9785
This commit is contained in:
Родитель
5e7e2f1b01
Коммит
029b99a764
|
@ -586301,7 +586301,7 @@
|
|||
"support"
|
||||
],
|
||||
"interfaces/gamepad.idl": [
|
||||
"89fa62f6e0d1fdb497ce6550804b57a5d4ee0d0f",
|
||||
"f112b177a27816085e46d4949b404f2d5666881a",
|
||||
"support"
|
||||
],
|
||||
"interfaces/geolocation-sensor.idl": [
|
||||
|
|
|
@ -1,33 +1,37 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the Gamepad spec.
|
||||
// See https://w3c.github.io/gamepad/
|
||||
|
||||
interface Gamepad {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute long index;
|
||||
readonly attribute boolean connected;
|
||||
readonly attribute DOMHighResTimeStamp timestamp;
|
||||
readonly attribute GamepadMappingType mapping;
|
||||
readonly attribute FrozenArray<double> axes;
|
||||
readonly attribute FrozenArray<GamepadButton> buttons;
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute long index;
|
||||
readonly attribute boolean connected;
|
||||
readonly attribute DOMHighResTimeStamp timestamp;
|
||||
readonly attribute GamepadMappingType mapping;
|
||||
readonly attribute FrozenArray<double> axes;
|
||||
readonly attribute FrozenArray<GamepadButton> buttons;
|
||||
};
|
||||
|
||||
interface GamepadButton {
|
||||
readonly attribute boolean pressed;
|
||||
readonly attribute boolean touched;
|
||||
readonly attribute double value;
|
||||
readonly attribute boolean pressed;
|
||||
readonly attribute boolean touched;
|
||||
readonly attribute double value;
|
||||
};
|
||||
|
||||
enum GamepadMappingType {
|
||||
"",
|
||||
"standard",
|
||||
"",
|
||||
"standard",
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
sequence<Gamepad?> getGamepads();
|
||||
sequence<Gamepad?> getGamepads();
|
||||
};
|
||||
|
||||
[Constructor(GamepadEventInit eventInitDict)]
|
||||
interface GamepadEvent : Event {
|
||||
readonly attribute Gamepad gamepad;
|
||||
interface GamepadEvent: Event {
|
||||
readonly attribute Gamepad gamepad;
|
||||
};
|
||||
|
||||
dictionary GamepadEventInit : EventInit {
|
||||
required Gamepad gamepad;
|
||||
dictionary GamepadEventInit: EventInit {
|
||||
required Gamepad gamepad;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче