Skip to content

Press Input

Defined in: packages/isaacscript-common/src/classes/features/other/PressInput.ts:17

  • Feature

pressInput(player, buttonAction): void

Defined in: packages/isaacscript-common/src/classes/features/other/PressInput.ts:77

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.

EntityPlayer

ButtonAction

void