summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/gamepad/gamepad_button_event.idl
blob: 5138a3b178d0495890d30cce7b2b5e4d8c53cddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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

[
    RuntimeEnabled=GamepadButtonAxisEvents
] interface GamepadButtonEvent : GamepadEvent {
    constructor(DOMString type, optional GamepadButtonEventInit eventInitDict = {});
    [ImplementedAs=getButton] readonly attribute unsigned long button;
    [ImplementedAs=getValue] readonly attribute double value;
};