UNPKG

dualsense-ts

Version:

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

106 lines 5.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandScopeB = exports.CommandScopeA = exports.PowerSave = exports.MicMode = exports.MicFlag = exports.MicSelect = exports.AudioOutput = exports.PlayerID = exports.Brightness = exports.MuteLedMode = exports.PulseOptions = exports.LedOptions = void 0; var LedOptions; (function (LedOptions) { LedOptions[LedOptions["Off"] = 0] = "Off"; LedOptions[LedOptions["PlayerLedBrightness"] = 1] = "PlayerLedBrightness"; LedOptions[LedOptions["Uninterruptible"] = 2] = "Uninterruptible"; LedOptions[LedOptions["Both"] = 3] = "Both"; })(LedOptions || (exports.LedOptions = LedOptions = {})); var PulseOptions; (function (PulseOptions) { PulseOptions[PulseOptions["Off"] = 0] = "Off"; PulseOptions[PulseOptions["FadeBlue"] = 1] = "FadeBlue"; PulseOptions[PulseOptions["FadeOut"] = 2] = "FadeOut"; })(PulseOptions || (exports.PulseOptions = PulseOptions = {})); var MuteLedMode; (function (MuteLedMode) { MuteLedMode[MuteLedMode["Off"] = 0] = "Off"; MuteLedMode[MuteLedMode["On"] = 1] = "On"; MuteLedMode[MuteLedMode["Pulse"] = 2] = "Pulse"; })(MuteLedMode || (exports.MuteLedMode = MuteLedMode = {})); var Brightness; (function (Brightness) { Brightness[Brightness["High"] = 0] = "High"; Brightness[Brightness["Medium"] = 1] = "Medium"; Brightness[Brightness["Low"] = 2] = "Low"; })(Brightness || (exports.Brightness = Brightness = {})); var PlayerID; (function (PlayerID) { PlayerID[PlayerID["Player1"] = 4] = "Player1"; PlayerID[PlayerID["Player2"] = 10] = "Player2"; PlayerID[PlayerID["Player3"] = 21] = "Player3"; PlayerID[PlayerID["Player4"] = 27] = "Player4"; PlayerID[PlayerID["All"] = 31] = "All"; })(PlayerID || (exports.PlayerID = PlayerID = {})); /** Audio output routing — controls how L/R channels map to headphone and speaker */ var AudioOutput; (function (AudioOutput) { /** Stereo L+R to headphone, speaker muted */ AudioOutput[AudioOutput["Headphone"] = 0] = "Headphone"; /** Left channel to headphone (mono), speaker muted */ AudioOutput[AudioOutput["HeadphoneMono"] = 16] = "HeadphoneMono"; /** Left channel to headphone, right channel to speaker */ AudioOutput[AudioOutput["Split"] = 32] = "Split"; /** Headphone muted, right channel to speaker only */ AudioOutput[AudioOutput["Speaker"] = 48] = "Speaker"; })(AudioOutput || (exports.AudioOutput = AudioOutput = {})); /** Microphone input source selection */ var MicSelect; (function (MicSelect) { /** Use internal microphone */ MicSelect[MicSelect["Internal"] = 1] = "Internal"; /** Use headset microphone */ MicSelect[MicSelect["Headset"] = 2] = "Headset"; })(MicSelect || (exports.MicSelect = MicSelect = {})); /** Microphone processing flags (can be combined) */ var MicFlag; (function (MicFlag) { MicFlag[MicFlag["EchoCancellation"] = 4] = "EchoCancellation"; MicFlag[MicFlag["NoiseCancellation"] = 8] = "NoiseCancellation"; })(MicFlag || (exports.MicFlag = MicFlag = {})); /** Microphone input mode — bits 6-7 of audio flags */ var MicMode; (function (MicMode) { /** Default mode */ MicMode[MicMode["Default"] = 0] = "Default"; /** Chat mode */ MicMode[MicMode["Chat"] = 64] = "Chat"; /** Automatic speech recognition mode */ MicMode[MicMode["ASR"] = 128] = "ASR"; })(MicMode || (exports.MicMode = MicMode = {})); /** Power save control — per-subsystem mute/disable flags (byte 10) */ var PowerSave; (function (PowerSave) { PowerSave[PowerSave["DisableTouch"] = 1] = "DisableTouch"; PowerSave[PowerSave["DisableMotion"] = 2] = "DisableMotion"; PowerSave[PowerSave["DisableHaptics"] = 4] = "DisableHaptics"; PowerSave[PowerSave["DisableAudio"] = 8] = "DisableAudio"; PowerSave[PowerSave["MuteMicrophone"] = 16] = "MuteMicrophone"; PowerSave[PowerSave["MuteSpeaker"] = 32] = "MuteSpeaker"; PowerSave[PowerSave["MuteHeadphone"] = 64] = "MuteHeadphone"; PowerSave[PowerSave["MuteHaptics"] = 128] = "MuteHaptics"; })(PowerSave || (exports.PowerSave = PowerSave = {})); var CommandScopeA; (function (CommandScopeA) { CommandScopeA[CommandScopeA["HapticRumble"] = 1] = "HapticRumble"; CommandScopeA[CommandScopeA["PrimaryRumble"] = 2] = "PrimaryRumble"; CommandScopeA[CommandScopeA["RightTriggerFeedback"] = 4] = "RightTriggerFeedback"; CommandScopeA[CommandScopeA["LeftTriggerFeedback"] = 8] = "LeftTriggerFeedback"; CommandScopeA[CommandScopeA["HeadphoneVolume"] = 16] = "HeadphoneVolume"; CommandScopeA[CommandScopeA["SpeakerVolume"] = 32] = "SpeakerVolume"; CommandScopeA[CommandScopeA["MicrophoneVolume"] = 64] = "MicrophoneVolume"; CommandScopeA[CommandScopeA["AudioFlags"] = 128] = "AudioFlags"; })(CommandScopeA || (exports.CommandScopeA = CommandScopeA = {})); var CommandScopeB; (function (CommandScopeB) { CommandScopeB[CommandScopeB["MicrophoneLED"] = 1] = "MicrophoneLED"; CommandScopeB[CommandScopeB["PowerSave"] = 2] = "PowerSave"; CommandScopeB[CommandScopeB["TouchpadLeds"] = 4] = "TouchpadLeds"; CommandScopeB[CommandScopeB["DisableLeds"] = 8] = "DisableLeds"; CommandScopeB[CommandScopeB["PlayerLeds"] = 16] = "PlayerLeds"; CommandScopeB[CommandScopeB["MotorPower"] = 64] = "MotorPower"; CommandScopeB[CommandScopeB["AudioFlags2"] = 128] = "AudioFlags2"; })(CommandScopeB || (exports.CommandScopeB = CommandScopeB = {})); //# sourceMappingURL=command.js.map