Press Input
Classes
Section titled “Classes”PressInput
Section titled “PressInput”Defined in: packages/isaacscript-common/src/classes/features/other/PressInput.ts:17
Extends
Section titled “Extends”Feature
Methods
Section titled “Methods”pressInput()
Section titled “pressInput()”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.
Parameters
Section titled “Parameters”player
Section titled “player”EntityPlayer
buttonAction
Section titled “buttonAction”ButtonAction
Returns
Section titled “Returns”void
