1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/gamepad/nsIGamepadServiceTest.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIVariant; 1.11 + 1.12 +/* 1.13 + * This interface is intended only for use in tests. 1.14 + */ 1.15 +[scriptable, uuid(b6ed093c-6ea0-4141-a8eb-f99645162651)] 1.16 +interface nsIGamepadServiceTest : nsISupports 1.17 +{ 1.18 + const unsigned long NO_MAPPING = 0; 1.19 + const unsigned long STANDARD_MAPPING = 1; 1.20 + 1.21 + unsigned long addGamepad(in string id, in unsigned long mapping, 1.22 + in unsigned long numButtons, 1.23 + in unsigned long numAxes); 1.24 + void removeGamepad(in unsigned long index); 1.25 + void newButtonEvent(in unsigned long index, in unsigned long button, 1.26 + in boolean pressed); 1.27 + void newAxisMoveEvent(in unsigned long index, in unsigned long axis, 1.28 + in double value); 1.29 +};