UNPKG

@hiddentao/clockwork-engine

Version:

A TypeScript/PIXI.js game engine for deterministic, replayable games with built-in rendering

29 lines 1.23 kB
/** * Memory Input Layer * * Headless input implementation for testing and replay. * Provides manual event triggering for test scenarios. */ import type { InputEvent, InputLayer, KeyboardInputEvent } from "../InputLayer"; export declare class MemoryInputLayer implements InputLayer { private pointerDownCallbacks; private pointerUpCallbacks; private pointerMoveCallbacks; private clickCallbacks; private keyDownCallbacks; private keyUpCallbacks; onPointerDown(callback: (event: InputEvent) => void): void; onPointerUp(callback: (event: InputEvent) => void): void; onPointerMove(callback: (event: InputEvent) => void): void; onClick(callback: (event: InputEvent) => void): void; onKeyDown(callback: (event: KeyboardInputEvent) => void): void; onKeyUp(callback: (event: KeyboardInputEvent) => void): void; removeAllListeners(): void; triggerPointerDown(event: InputEvent): void; triggerPointerUp(event: InputEvent): void; triggerPointerMove(event: InputEvent): void; triggerClick(event: InputEvent): void; triggerKeyDown(event: KeyboardInputEvent): void; triggerKeyUp(event: KeyboardInputEvent): void; } //# sourceMappingURL=MemoryInputLayer.d.ts.map