replay-viewer
Version:
Rocket League replay viewer React component and tooling
25 lines (24 loc) • 758 B
TypeScript
import { CameraChangeEvent } from "../eventbus/events/cameraChange";
declare class KeyManager {
private listening;
private keysPressed;
private interval?;
private lastKeyPress;
private constructor();
onCameraChange: ({ camera }: CameraChangeEvent) => void;
toggleKeyListener(): boolean;
private readonly onKeyUpEvent;
private readonly onKeyDownEvent;
private readonly resetKeyCodes;
private readonly sendDispatch;
/**
* ========================================
* Managers are singletons
* ========================================
*/
private static instance?;
static getInstance(): KeyManager;
static init(): KeyManager;
static destruct(): void;
}
export default KeyManager;