gecko/dom/interfaces/events/nsIDOMGamepadAxisMoveEvent.idl
Ted Mielczarek bc92001c0b bug 604039 - Add DOM Gamepad APIs. r=smaug
--HG--
extra : rebase_source : ffffdc4549da1b25ea263b623c05ae1afb3d46a0
2011-08-03 14:12:08 -04:00

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;
};