dom/webidl/GamepadAxisMoveEvent.webidl
author Marian-Vasile Laza <mlaza@mozilla.com>
Thu, 06 Oct 2022 21:34:22 +0300
changeset 637142 942c201b1ac7a46a449f1fb80da7b050ec0ea120
parent 581944 77da39e524d64464f0905b4d2f254d4d7bf11a17
permissions -rw-r--r--
Backed out changeset c6cf679e8f08 (bug 1773237) for causing bc failures on Promise-inl.h. CLOSED TREE

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 */

[Pref="dom.gamepad.non_standard_events.enabled",
 Exposed=Window, SecureContext]
interface GamepadAxisMoveEvent : GamepadEvent
{
  constructor(DOMString type,
              optional GamepadAxisMoveEventInit eventInitDict = {});

  readonly attribute unsigned long axis;
  readonly attribute double value;
};

dictionary GamepadAxisMoveEventInit : GamepadEventInit
{
  unsigned long axis = 0;
  double value = 0;
};