dualsense-ts
Version:
The natural interface for your DualSense and DualSense Access controllers, with Typescript
21 lines • 741 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Mute = void 0;
const momentary_1 = require("./momentary");
class Mute extends momentary_1.Momentary {
constructor() {
super(...arguments);
/** Whether the mute indicator LED is currently lit (managed by controller firmware) */
this.status = new momentary_1.Momentary({ icon: "🔇", name: "MuteStatus" });
}
/** Set the mute LED mode. Overrides the firmware-managed state. */
setLed(mode) {
this.ledMode = mode;
}
/** Release software control, returning the LED to firmware management */
resetLed() {
this.ledMode = undefined;
}
}
exports.Mute = Mute;
//# sourceMappingURL=mute.js.map