InputManager.GetButtonPressed

Method in InputManager

Declaration

public bool GetButtonPressed(InputButton button)

Description

Checks if the specified input button was pressed this frame.

Parameters

buttonThe input button to read.

Returns

boolTrue if the input button was pressed this frame.