InputManager.GetButton

Method in InputManager

Declaration

public bool GetButton(InputButton button, bool currentState = false)

Description

Checks if the specified input button is performed.

Parameters

buttonThe input button to read.
currentStateThe current performed state of the button (default=false).

Returns

boolTrue if the input button is performed.