wavelovers/src/models/IGamepad.ts

16 lines
419 B
TypeScript
Raw Normal View History

import IVibrationActuator from '@/models/IVibrationActuator';
import IGamepadButton from '@/models/IGamepadButton';
2022-07-24 18:56:41 +03:00
interface IGamepad {
readonly id: string;
readonly index: number;
readonly timestamp: number;
readonly connected: boolean;
readonly mapping: string;
readonly axes: number[];
readonly buttons: IGamepadButton[];
readonly vibrationActuator: IVibrationActuator;
}
2022-07-24 18:56:41 +03:00
export default IGamepad;