@nodert-win11-22h2/windows.gaming.input
Version:
Use the Windows.Gaming.Input UWP API directly from Node.js
708 lines (595 loc) • 20 kB
JavaScript
ArcadeStickReading = (function () {
var cls = function ArcadeStickReading() {
this.timestamp = new Number();
this.buttons = new ArcadeStickButtons();
};
return cls;
}) ();
exports.ArcadeStickReading = ArcadeStickReading;
FlightStickReading = (function () {
var cls = function FlightStickReading() {
this.timestamp = new Number();
this.buttons = new FlightStickButtons();
this.hatSwitch = new GameControllerSwitchPosition();
this.roll = new Number();
this.pitch = new Number();
this.yaw = new Number();
this.throttle = new Number();
};
return cls;
}) ();
exports.FlightStickReading = FlightStickReading;
GamepadReading = (function () {
var cls = function GamepadReading() {
this.timestamp = new Number();
this.buttons = new GamepadButtons();
this.leftTrigger = new Number();
this.rightTrigger = new Number();
this.leftThumbstickX = new Number();
this.leftThumbstickY = new Number();
this.rightThumbstickX = new Number();
this.rightThumbstickY = new Number();
};
return cls;
}) ();
exports.GamepadReading = GamepadReading;
GamepadVibration = (function () {
var cls = function GamepadVibration() {
this.leftMotor = new Number();
this.rightMotor = new Number();
this.leftTrigger = new Number();
this.rightTrigger = new Number();
};
return cls;
}) ();
exports.GamepadVibration = GamepadVibration;
GamingInputPreviewContract = (function () {
var cls = function GamingInputPreviewContract() {
};
return cls;
}) ();
exports.GamingInputPreviewContract = GamingInputPreviewContract;
RacingWheelReading = (function () {
var cls = function RacingWheelReading() {
this.timestamp = new Number();
this.buttons = new RacingWheelButtons();
this.patternShifterGear = new Number();
this.wheel = new Number();
this.throttle = new Number();
this.brake = new Number();
this.clutch = new Number();
this.handbrake = new Number();
};
return cls;
}) ();
exports.RacingWheelReading = RacingWheelReading;
UINavigationReading = (function () {
var cls = function UINavigationReading() {
this.timestamp = new Number();
this.requiredButtons = new RequiredUINavigationButtons();
this.optionalButtons = new OptionalUINavigationButtons();
};
return cls;
}) ();
exports.UINavigationReading = UINavigationReading;
_ArcadeStickButtons = function () {
this.none = 0;
this.stickUp = 1;
this.stickDown = 2;
this.stickLeft = 3;
this.stickRight = 4;
this.action1 = 5;
this.action2 = 6;
this.action3 = 7;
this.action4 = 8;
this.action5 = 9;
this.action6 = 10;
this.special1 = 11;
this.special2 = 12;
}
exports.ArcadeStickButtons = new _ArcadeStickButtons();
_FlightStickButtons = function () {
this.none = 0;
this.firePrimary = 1;
this.fireSecondary = 2;
}
exports.FlightStickButtons = new _FlightStickButtons();
_GameControllerButtonLabel = function () {
this.none = 0;
this.xboxBack = 1;
this.xboxStart = 2;
this.xboxMenu = 3;
this.xboxView = 4;
this.xboxUp = 5;
this.xboxDown = 6;
this.xboxLeft = 7;
this.xboxRight = 8;
this.xboxA = 9;
this.xboxB = 10;
this.xboxX = 11;
this.xboxY = 12;
this.xboxLeftBumper = 13;
this.xboxLeftTrigger = 14;
this.xboxLeftStickButton = 15;
this.xboxRightBumper = 16;
this.xboxRightTrigger = 17;
this.xboxRightStickButton = 18;
this.xboxPaddle1 = 19;
this.xboxPaddle2 = 20;
this.xboxPaddle3 = 21;
this.xboxPaddle4 = 22;
this.mode = 23;
this.select = 24;
this.menu = 25;
this.view = 26;
this.back = 27;
this.start = 28;
this.options = 29;
this.share = 30;
this.up = 31;
this.down = 32;
this.left = 33;
this.right = 34;
this.letterA = 35;
this.letterB = 36;
this.letterC = 37;
this.letterL = 38;
this.letterR = 39;
this.letterX = 40;
this.letterY = 41;
this.letterZ = 42;
this.cross = 43;
this.circle = 44;
this.square = 45;
this.triangle = 46;
this.leftBumper = 47;
this.leftTrigger = 48;
this.leftStickButton = 49;
this.left1 = 50;
this.left2 = 51;
this.left3 = 52;
this.rightBumper = 53;
this.rightTrigger = 54;
this.rightStickButton = 55;
this.right1 = 56;
this.right2 = 57;
this.right3 = 58;
this.paddle1 = 59;
this.paddle2 = 60;
this.paddle3 = 61;
this.paddle4 = 62;
this.plus = 63;
this.minus = 64;
this.downLeftArrow = 65;
this.dialLeft = 66;
this.dialRight = 67;
this.suspension = 68;
}
exports.GameControllerButtonLabel = new _GameControllerButtonLabel();
_GameControllerSwitchKind = function () {
this.twoWay = 0;
this.fourWay = 1;
this.eightWay = 2;
}
exports.GameControllerSwitchKind = new _GameControllerSwitchKind();
_GameControllerSwitchPosition = function () {
this.center = 0;
this.up = 1;
this.upRight = 2;
this.right = 3;
this.downRight = 4;
this.down = 5;
this.downLeft = 6;
this.left = 7;
this.upLeft = 8;
}
exports.GameControllerSwitchPosition = new _GameControllerSwitchPosition();
_GamepadButtons = function () {
this.none = 0;
this.menu = 1;
this.view = 2;
this.a = 3;
this.b = 4;
this.x = 5;
this.y = 6;
this.dPadUp = 7;
this.dPadDown = 8;
this.dPadLeft = 9;
this.dPadRight = 10;
this.leftShoulder = 11;
this.rightShoulder = 12;
this.leftThumbstick = 13;
this.rightThumbstick = 14;
this.paddle1 = 15;
this.paddle2 = 16;
this.paddle3 = 17;
this.paddle4 = 18;
}
exports.GamepadButtons = new _GamepadButtons();
_OptionalUINavigationButtons = function () {
this.none = 0;
this.context1 = 1;
this.context2 = 2;
this.context3 = 3;
this.context4 = 4;
this.pageUp = 5;
this.pageDown = 6;
this.pageLeft = 7;
this.pageRight = 8;
this.scrollUp = 9;
this.scrollDown = 10;
this.scrollLeft = 11;
this.scrollRight = 12;
}
exports.OptionalUINavigationButtons = new _OptionalUINavigationButtons();
_RacingWheelButtons = function () {
this.none = 0;
this.previousGear = 1;
this.nextGear = 2;
this.dPadUp = 3;
this.dPadDown = 4;
this.dPadLeft = 5;
this.dPadRight = 6;
this.button1 = 7;
this.button2 = 8;
this.button3 = 9;
this.button4 = 10;
this.button5 = 11;
this.button6 = 12;
this.button7 = 13;
this.button8 = 14;
this.button9 = 15;
this.button10 = 16;
this.button11 = 17;
this.button12 = 18;
this.button13 = 19;
this.button14 = 20;
this.button15 = 21;
this.button16 = 22;
}
exports.RacingWheelButtons = new _RacingWheelButtons();
_RequiredUINavigationButtons = function () {
this.none = 0;
this.menu = 1;
this.view = 2;
this.accept = 3;
this.cancel = 4;
this.up = 5;
this.down = 6;
this.left = 7;
this.right = 8;
}
exports.RequiredUINavigationButtons = new _RequiredUINavigationButtons();
ArcadeStick = (function () {
var cls = function ArcadeStick() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
};
cls.prototype.getButtonLabel = function getButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="ArcadeStickButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="ArcadeStickReading" />
/// </signature>
return new ArcadeStickReading();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="ArcadeStick" />
/// </signature>
return new ArcadeStick();
}
cls.arcadeSticks = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.ArcadeStick = ArcadeStick;
FlightStick = (function () {
var cls = function FlightStick() {
this.hatSwitchKind = new GameControllerSwitchKind();
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
};
cls.prototype.getButtonLabel = function getButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="FlightStickButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="FlightStickReading" />
/// </signature>
return new FlightStickReading();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="FlightStick" />
/// </signature>
return new FlightStick();
}
cls.flightSticks = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.FlightStick = FlightStick;
Gamepad = (function () {
var cls = function Gamepad() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
this.vibration = new GamepadVibration();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="GamepadReading" />
/// </signature>
return new GamepadReading();
}
cls.prototype.getButtonLabel = function getButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="GamepadButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="Gamepad" />
/// </signature>
return new Gamepad();
}
cls.gamepads = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.Gamepad = Gamepad;
Headset = (function () {
var cls = function Headset() {
this.captureDeviceId = new String();
this.renderDeviceId = new String();
};
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.Headset = Headset;
IGameController = (function () {
var cls = function IGameController() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
};
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.IGameController = IGameController;
IGameControllerBatteryInfo = (function () {
var cls = function IGameControllerBatteryInfo() {
};
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
return cls;
}) ();
exports.IGameControllerBatteryInfo = IGameControllerBatteryInfo;
RacingWheel = (function () {
var cls = function RacingWheel() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
this.hasClutch = new Boolean();
this.hasHandbrake = new Boolean();
this.hasPatternShifter = new Boolean();
this.maxPatternShifterGear = new Number();
this.maxWheelAngle = new Number();
this.wheelMotor = new Object();
};
cls.prototype.getButtonLabel = function getButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="RacingWheelButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="RacingWheelReading" />
/// </signature>
return new RacingWheelReading();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="RacingWheel" />
/// </signature>
return new RacingWheel();
}
cls.racingWheels = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.RacingWheel = RacingWheel;
RawGameController = (function () {
var cls = function RawGameController() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
this.axisCount = new Number();
this.buttonCount = new Number();
this.forceFeedbackMotors = new Object();
this.hardwareProductId = new Number();
this.hardwareVendorId = new Number();
this.switchCount = new Number();
this.displayName = new String();
this.nonRoamableId = new String();
this.simpleHapticsControllers = new Object();
};
cls.prototype.getButtonLabel = function getButtonLabel(buttonIndex) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="buttonIndex" type="Number">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.getCurrentReading = function () {
}
cls.prototype.getSwitchKind = function getSwitchKind(switchIndex) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="switchIndex" type="Number">A param.</param>
/// <returns type="GameControllerSwitchKind" />
/// </signature>
return new GameControllerSwitchKind();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="RawGameController" />
/// </signature>
return new RawGameController();
}
cls.rawGameControllers = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.RawGameController = RawGameController;
UINavigationController = (function () {
var cls = function UINavigationController() {
this.headset = new Headset();
this.isWireless = new Boolean();
this.user = new Object();
};
cls.prototype.getCurrentReading = function getCurrentReading() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="UINavigationReading" />
/// </signature>
return new UINavigationReading();
}
cls.prototype.getOptionalButtonLabel = function getOptionalButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="OptionalUINavigationButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.getRequiredButtonLabel = function getRequiredButtonLabel(button) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="button" type="RequiredUINavigationButtons">A param.</param>
/// <returns type="GameControllerButtonLabel" />
/// </signature>
return new GameControllerButtonLabel();
}
cls.prototype.tryGetBatteryReport = function tryGetBatteryReport() {
/// <signature>
/// <summary>Function summary.</summary>
/// <returns type="Object" />
/// </signature>
return new Object();
}
cls.fromGameController = function fromGameController(gameController) {
/// <signature>
/// <summary>Function summary.</summary>
/// <param name="gameController" type="IGameController">A param.</param>
/// <returns type="UINavigationController" />
/// </signature>
return new UINavigationController();
}
cls.uINavigationControllers = new Object();
cls.prototype.addListener = function addListener(eventName, callback){}
cls.prototype.removeListener = function removeListener(eventName, callback){}
cls.prototype.on = function on(eventName, callback){}
cls.prototype.off = function off(eventName, callback){}
return cls;
}) ();
exports.UINavigationController = UINavigationController;