@benev/nubs
Version:
user-input system for web games
12 lines (11 loc) • 645 B
TypeScript
import { Effects } from "../bindings/types/effects.js";
import { Bindings } from "../bindings/types/bindings.js";
import { NubCauseEvent } from "../../../events/cause.js";
import { NubDetail } from "../../../events/types/detail.js";
import { ReadableSet } from "../../../tools/regulated-set/types/readable-set.js";
export declare const setup_cause_and_effect_translation: ({ modes, effects, dispatch_effect, get_current_bindings, }: {
effects: Effects;
modes: ReadableSet<string>;
get_current_bindings: () => Bindings;
dispatch_effect: (detail: NubDetail.Effect) => void;
}) => ({ detail: cause_detail }: NubCauseEvent) => void;