Show / Hide Table of Contents

Method keys.isPressed


Overload

Returns true if the specified key or mouse button is pressed. In UI code use keys.gui instead.

public static bool isPressed(KKey key)
Parameters
key  (KKey)
Returns
bool

Remarks

Uses API GetAsyncKeyState.