Synced
InputSnapshot.WasKeyPressed
Section titled “InputSnapshot.WasKeyPressed”
- Determines whether a key was newly pressed during this frame.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Input
Declaration
Section titled “Declaration”public bool Inno.Input.InputSnapshot.WasKeyPressed(Inno.Core.Input.KeyCode key)Parameters
Section titled “Parameters”Parameter key: The backend-neutral physical key.
Returns
Section titled “Returns”true when the key transitioned to down.