Skip to main content

InputManager.GetButtonDown

Declaration#

public virtual bool GetButtonDown(string buttonName)

Parameters#

NameDescription
buttonNameName of button to read

Description#

Returns true during the frame the user pressed down the virtual button identified by buttonName

Usage#

Example
InterfaceManager.Input.GetButtonDown("Fire1");

Declaration#

public virtual bool GetButtonDown(string buttonName, Int32 playerId)

Parameters#

NameDescription
buttonNameName of button to read
playerIdId of player to check

Description#

Returns true during the frame the user pressed down the virtual button identified by buttonName

Usage#

Example
InterfaceManager.Input.GetButtonDown("Fire1", 0);