InputManager.GetKey
Declaration#
public virtual bool GetKey(KeyCode key)Parameters#
| Name | Description |
|---|---|
| key | Key to read |
Description#
Returns true while the user holds down the key identified by name
Usage#
Example
InterfaceManager.Input.GetKey(KeyCode.Return);Declaration#
public virtual bool GetKey(string key, Int32 playerId)Parameters#
| Name | Description |
|---|---|
| key | Key to read |
| playerId | Id of player to check |
Description#
Returns true while the user holds down the key identified by name
Usage#
Example
InterfaceManager.Input.GetKey(KeyCode.Return, 0);