InputManager.GetButton
Declaration#
public virtual bool GetButton(string buttonName)Parameters#
| Name | Description |
|---|---|
| buttonName | Name 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#
| Name | Description |
|---|---|
| buttonName | Name of button to read |
| playerId | Id of player to check |
Description#
True when a button has been pressed and not released
Usage#
Example
InterfaceManager.Input.GetButton("Fire1", 0);