UNPKG

replay-viewer

Version:

Rocket League replay viewer React component and tooling

13 lines (12 loc) 632 B
import { Vector3 } from "three"; declare type Direction = "forward" | "backward" | "left" | "right" | "up" | "down"; /** * Fires when the keys are pressed in a certain manner. */ export interface KeyControlEvent { directions: Direction[]; speed: boolean; } export declare const addKeyControlListener: (callback: (arg: KeyControlEvent) => void) => void, removeKeyControlListener: (callback: (arg: KeyControlEvent) => void) => void, dispatchKeyControlEvent: (args: KeyControlEvent) => void; export declare const applyDirections: (cameraDirection: Vector3, directions: Direction[], multiplier: number) => Vector3; export {};