| // 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 button event. |
| // https://docs.google.com/document/d/1rnQ1gU0iwPXbO7OvKS6KO9gyfpSdSQvKhK9_OkzUuKE |
| |
| [ |
| Exposed=Window, |
| RuntimeEnabled=GamepadButtonAxisEvents |
| ] interface GamepadButtonEvent : GamepadEvent { |
| constructor(DOMString type, optional GamepadButtonEventInit eventInitDict = {}); |
| [ImplementedAs=getButton] readonly attribute unsigned long button; |
| [ImplementedAs=getValue] readonly attribute double value; |
| }; |