dualsense-ts
Version:
A natural interface for your DualSense controller, with Typescript
20 lines • 691 B
TypeScript
import { Input, InputParams } from "../input";
import { Axis, AxisParams } from "./axis";
export interface AccelerometerParams extends InputParams {
/** Configuration for the input's x axis */
x?: AxisParams;
/** Configuration for the input's y axis */
y?: AxisParams;
/** Configuration for the input's z axis */
z?: AxisParams;
}
/** Tracks the linear acceleration of the controller. */
export declare class Accelerometer extends Input<Accelerometer> {
readonly state: this;
readonly x: Axis;
readonly y: Axis;
readonly z: Axis;
constructor(params?: AccelerometerParams);
readonly active = false;
}
//# sourceMappingURL=accelerometer.d.ts.map