tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

gamepad-extensions.idl (1047B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Gamepad Extensions (https://w3c.github.io/gamepad/extensions.html)
      5 
      6 enum GamepadHand {
      7  "",  /* unknown, both hands, or not applicable */
      8  "left",
      9  "right"
     10 };
     11 
     12 [Exposed=Window]
     13 interface GamepadPose {
     14  readonly attribute boolean hasOrientation;
     15  readonly attribute boolean hasPosition;
     16 
     17  readonly attribute Float32Array? position;
     18  readonly attribute Float32Array? linearVelocity;
     19  readonly attribute Float32Array? linearAcceleration;
     20  readonly attribute Float32Array? orientation;
     21  readonly attribute Float32Array? angularVelocity;
     22  readonly attribute Float32Array? angularAcceleration;
     23 };
     24 
     25 partial interface Gamepad {
     26  readonly attribute GamepadHand hand;
     27  readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
     28  readonly attribute GamepadPose? pose;
     29 };
     30 
     31 [Exposed=Window]
     32 partial interface GamepadHapticActuator {
     33  Promise<boolean> pulse(double value, double duration);
     34 };