@benev/nubs
Version:
user-input system for web games
21 lines (20 loc) • 451 B
TypeScript
import { V2 } from "../../../tools/v2.js";
import { NubDetail } from "../../../events/types/detail.js";
export declare namespace Stats {
interface Key {
time: number;
detail: NubDetail.Key & {
effect: string;
};
}
interface Pointer {
movement: V2;
position: V2;
}
interface Stick {
vector: V2;
}
}
export interface RecentKeyStats {
[effect: string]: Stats.Key;
}