mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bc92001c0b
--HG-- extra : rebase_source : ffffdc4549da1b25ea263b623c05ae1afb3d46a0
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
/* 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/. */
|
|
|
|
#include "nsIDOMGamepadEvent.idl"
|
|
|
|
[builtinclass, scriptable, uuid(bd09eef8-8e07-4baf-8d39-4f92003dbca8)]
|
|
interface nsIDOMGamepadAxisMoveEvent : nsIDOMGamepadEvent
|
|
{
|
|
/**
|
|
* Index in gamepad.axes of the axis that was moved.
|
|
*/
|
|
readonly attribute unsigned long axis;
|
|
|
|
/**
|
|
* Position of the axis in the range -1.0...1.0.
|
|
*/
|
|
readonly attribute double value;
|
|
|
|
[noscript]
|
|
void initGamepadAxisMoveEvent(in DOMString typeArg,
|
|
in boolean canBubbleArg,
|
|
in boolean cancelableArg,
|
|
in nsIDOMGamepad gamepad,
|
|
in unsigned long axis,
|
|
in double value);
|
|
};
|
|
|
|
dictionary GamepadAxisMoveEventInit : GamepadEventInit
|
|
{
|
|
unsigned long axis;
|
|
double value;
|
|
};
|