dualsense-ts
Version:
The natural interface for your DualSense and DualSense Access controllers, with Typescript
23 lines • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessStatusLed = void 0;
/** Controls the white status LED on the Access controller */
class AccessStatusLed {
constructor() {
this._on = true;
}
/** Get the current state */
get on() {
return this._on;
}
/** Set the status LED on or off */
set(on) {
this._on = on;
}
/** Returns a string key for change detection */
toKey() {
return this._on ? "1" : "0";
}
}
exports.AccessStatusLed = AccessStatusLed;
//# sourceMappingURL=access_status_led.js.map