Skip to main content

InputManager.GetKey

Declaration#

public virtual bool GetKey(KeyCode key)

Parameters#

NameDescription
keyKey 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#

NameDescription
keyKey to read
playerIdId 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);