contro-max
Version:
Game controls done in the best possible way!
6 lines (5 loc) • 355 B
TypeScript
export type MovementAction = [coordinate: 'x' | 'y' | 'z', step: number];
export declare const keysMovementConfig: MovementAction[];
export type MobileControlsConfig = Array<[label: string, rotate: number, movementAction: MovementAction[]]>;
/** Schema of left part of touch controls */
export declare const touchLeftControlsConfig: MobileControlsConfig;