UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

14 lines 694 B
import type { ButtonAction } from "isaac-typescript-definitions"; import { Feature } from "../../private/Feature"; export declare class PressInput extends Feature { private readonly isActionTriggered; /** * Helper function to press an arbitrary `ButtonAction` on the next possible input poll. In most * cases, this will be equivalent to if the first player pressed the corresponding input. It * usually takes 1 frame for the input to take effect. * * In order to use this function, you must upgrade your mod with `ISCFeature.PRESS_INPUT`. */ pressInput(player: EntityPlayer, buttonAction: ButtonAction): void; } //# sourceMappingURL=PressInput.d.ts.map