Skip to main content

InputManager.GetButton

Declaration#

public virtual bool GetButton(string buttonName)

Parameters#

NameDescription
buttonNameName of button to read

Description#

True when a button has been pressed and not released

Usage#

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

Declaration#

public virtual bool GetButton(string buttonName, Int32 playerId)

Parameters#

NameDescription
buttonNameName of button to read
playerIdId of player to check

Description#

True when a button has been pressed and not released

Usage#

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