InputManager.GetButtonDown
Declaration#
public virtual bool GetButtonDown(string buttonName)Parameters#
| Name | Description |
|---|---|
| buttonName | Name 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#
| Name | Description |
|---|---|
| buttonName | Name of button to read |
| playerId | Id 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);