dualsense-ts
Version:
The natural interface for your DualSense Classic and DualSense Access controllers, with Typescript
63 lines • 1.82 kB
TypeScript
import { ChargeStatus } from "../battery_state";
/** Profile LED animation modes */
export declare enum AccessProfileLedMode {
Off = 0,
On = 1,
Fade = 2,
Sweep = 3
}
/** Player indicator patterns (6-segment cross LED) */
export declare enum AccessPlayerIndicator {
Off = 0,
/** S (1 segment) */
Player1 = 1,
/** S + N (2 segments) */
Player2 = 2,
/** S + NE + NW (3 segments) */
Player3 = 3,
/** N + S + E + W (cross, 4 segments) */
Player4 = 4
}
/** IDs for Access controller inputs */
export declare const enum AccessInputId {
B1 = "B1",
B2 = "B2",
B3 = "B3",
B4 = "B4",
B5 = "B5",
B6 = "B6",
B7 = "B7",
B8 = "B8",
Center = "Center",
StickClick = "StickClick",
PS = "PS",
Profile = "Profile",
StickX = "StickX",
StickY = "StickY",
BatteryLevel = "BatteryLevel",
BatteryStatus = "BatteryStatus",
ProfileId = "ProfileId"
}
/** Describes an observation of the input state of an Access controller */
export interface AccessHIDState {
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: boolean;
[]: number;
[]: number;
[]: number;
[]: ChargeStatus;
[]: number;
}
/** Default values for all Access inputs */
export declare const DefaultAccessHIDState: AccessHIDState;
//# sourceMappingURL=access_hid_state.d.ts.map