blob: 5822a220bddedebc9d4d23a4a39a2ec3fdc778ab [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Non-standard gamepad axis event.
// https://docs.google.com/document/d/1rnQ1gU0iwPXbO7OvKS6KO9gyfpSdSQvKhK9_OkzUuKE
[
Exposed=Window,
RuntimeEnabled=GamepadButtonAxisEvents
] interface GamepadAxisEvent : GamepadEvent {
constructor(DOMString type, optional GamepadAxisEventInit eventInitDict = {});
[ImplementedAs=getAxis] readonly attribute unsigned long axis;
[ImplementedAs=getValue] readonly attribute double value;
};