dualsense-ts
Version:
The natural interface for your DualSense Classic and DualSense Access controllers, with Typescript
23 lines • 963 B
TypeScript
import { Brightness } from "../hid/command";
/** Controls the 5 white player indicator LEDs at the bottom of the controller */
export declare class PlayerLeds {
private _bitmask;
private _brightness;
/** Get the current bitmask (5 bits, one per LED) */
get bitmask(): number;
/** Set all 5 LEDs from a bitmask (0–31). PlayerID enum values also work here. */
set(bitmask: number): void;
/** Set a single LED on or off (index 0–4, left to right) */
setLed(index: number, on: boolean): void;
/** Get the state of a single LED (index 0–4) */
getLed(index: number): boolean;
/** Turn all LEDs off */
clear(): void;
/** Get the current brightness */
get brightness(): Brightness;
/** Set the player LED brightness (High, Medium, Low) */
setBrightness(brightness: Brightness): void;
/** Returns a string key for change detection */
toKey(): string;
}
//# sourceMappingURL=player_leds.d.ts.map