UNPKG

dualsense-ts

Version:

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

24 lines 762 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AccessProfileLeds = void 0; const access_hid_state_1 = require("../hid/access/access_hid_state"); /** Controls the 3 profile indicator LEDs on the Access controller */ class AccessProfileLeds { constructor() { this._mode = access_hid_state_1.AccessProfileLedMode.On; } /** Get the current LED animation mode */ get mode() { return this._mode; } /** Set the profile LED animation mode */ set(mode) { this._mode = mode; } /** Returns a string key for change detection */ toKey() { return `${this._mode}`; } } exports.AccessProfileLeds = AccessProfileLeds; //# sourceMappingURL=access_profile_leds.js.map