UNPKG

dualsense-ts

Version:

The natural interface for your DualSense and DualSense Access controllers, with Typescript

61 lines 2.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputId = void 0; /** IDs of real and virtual controller inputs */ var InputId; (function (InputId) { InputId["Options"] = "Options"; InputId["Create"] = "Create"; InputId["Playstation"] = "Playstation"; InputId["Mute"] = "Mute"; /** The orange indicator light state */ InputId["Status"] = "Status"; InputId["Triangle"] = "Triangle"; InputId["Circle"] = "Circle"; InputId["Cross"] = "Cross"; InputId["Square"] = "Square"; InputId["Dpad"] = "Dpad"; InputId["Up"] = "Up"; InputId["Down"] = "Down"; InputId["Left"] = "Left"; InputId["Right"] = "Right"; InputId["TouchButton"] = "TouchButton"; InputId["TouchX0"] = "TouchX0"; InputId["TouchY0"] = "TouchY0"; InputId["TouchContact0"] = "TouchContact0"; InputId["TouchId0"] = "TouchId0"; InputId["TouchX1"] = "TouchX1"; InputId["TouchY1"] = "TouchY1"; InputId["TouchContact1"] = "TouchContact1"; InputId["TouchId1"] = "TouchId1"; InputId["LeftAnalogButton"] = "L3"; InputId["RightAnalogButton"] = "R3"; InputId["LeftTrigger"] = "L2"; InputId["RightTrigger"] = "R2"; InputId["LeftTriggerButton"] = "L2Button"; InputId["RightTriggerButton"] = "R2Button"; InputId["LeftBumper"] = "L1"; InputId["RightBumper"] = "R1"; InputId["LeftAnalogX"] = "LX"; InputId["LeftAnalogY"] = "LY"; InputId["RightAnalogX"] = "RX"; InputId["RightAnalogY"] = "RY"; InputId["GyroX"] = "GyroX"; InputId["GyroY"] = "GyroY"; InputId["GyroZ"] = "GyroZ"; InputId["AccelX"] = "AccelX"; InputId["AccelY"] = "AccelY"; InputId["AccelZ"] = "AccelZ"; /** Monotonic sensor timestamp in microseconds, from the controller's clock */ InputId["SensorTimestamp"] = "SensorTimestamp"; InputId["BatteryLevel"] = "BatteryLevel"; InputId["BatteryStatus"] = "BatteryStatus"; InputId["MuteLed"] = "MuteLed"; /** Whether a microphone is connected to the controller */ InputId["Microphone"] = "Microphone"; /** Whether headphones are connected to the controller */ InputId["Headphone"] = "Headphone"; /** For placeholder inputs */ InputId["Unknown"] = "Unknown"; })(InputId || (exports.InputId = InputId = {})); //# sourceMappingURL=id.js.map