Press Input
Hierarchy
-
Feature
↳
PressInput
Methods
pressInput
▸ pressInput(player
, buttonAction
): void
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
Name | Type |
---|---|
player | EntityPlayer |
buttonAction | ButtonAction |
Returns
void
Defined in
packages/isaacscript-common/src/classes/features/other/PressInput.ts:77