mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
281489a00e
--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;
|
|
};
|