assassin-bug/framework/input/index.d.ts

14 lines
416 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
import { BaseInput } from './inputs/base-input';
import { State } from './interfaces/state';
export declare class Input {
private InputIDs;
private element;
private inputs;
constructor(InputIDs: string[], element: HTMLElement);
private init;
addInput(id: string, input: BaseInput): this;
capture(preventDefault?: boolean): void;
release(): void;
getState(): State;
}