dualsense-ts
Version:
The natural interface for your DualSense and DualSense Access controllers, with Typescript
26 lines • 932 B
TypeScript
import { PulseOptions } from "../hid";
/** RGB color with 0–255 integer components */
export interface RGB {
r: number;
g: number;
b: number;
}
/** Controls the RGB light bar at the top of the controller */
export declare class Lightbar {
private _color;
/** One-shot pulse effect to send on the next output cycle */
private _pendingPulse;
/** Get the current color */
get color(): RGB;
/** Set the light bar color (0–255 per channel) */
set(color: RGB): void;
/** Fade the light bar to Sony blue and hold. Use fadeOut() to return to your set color. */
fadeBlue(): void;
/** Fade the light bar to black, then return to the set color. */
fadeOut(): void;
/** Consume and return pending pulse (used by the output loop) */
consumePulse(): PulseOptions;
/** Returns a string key for change detection */
toKey(): string;
}
//# sourceMappingURL=lightbar.d.ts.map