CutInputs beta
Class of @v12-engine/client
ts
export declare class CutInputsA cinematic's keys and clicks while the player's hands are off (cut.input): a key or a click waited for (D2's untilKey, untilClick), or heard as they come until the cinematic is over
Members
constructor
ts
constructor(cut: Cut);Constructs a new instance of the CutInputs class
clear
ts
clear(): void;Takes away everything the cut put up that is still up
click
ts
click(seconds?: number): Promise<void>;Waits for a click, seconds at most
key
ts
key(key?: string, seconds?: number): Promise<void>;Waits for a key (its code or what it makes; any but Esc when left out), seconds at most
on
ts
on(listener: (input: CutInput) => void): () => void;Hears every key and click until the cinematic is over, or what it gives back is called