dualsense-ts
Version:
The natural interface for your DualSense and DualSense Access controllers, with Typescript
28 lines • 957 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessPlayerIndicatorLed = void 0;
const access_hid_state_1 = require("../hid/access/access_hid_state");
/** Controls the player indicator LED pattern on the Access controller (6-segment cross) */
class AccessPlayerIndicatorLed {
constructor() {
this._pattern = access_hid_state_1.AccessPlayerIndicator.Off;
}
/** Get the current pattern */
get pattern() {
return this._pattern;
}
/** Set the player indicator pattern */
set(pattern) {
this._pattern = pattern;
}
/** Turn off the player indicator */
clear() {
this._pattern = access_hid_state_1.AccessPlayerIndicator.Off;
}
/** Returns a string key for change detection */
toKey() {
return `${this._pattern}`;
}
}
exports.AccessPlayerIndicatorLed = AccessPlayerIndicatorLed;
//# sourceMappingURL=access_player_indicator.js.map