Skip to main content
←API Reference ←NianticSpatial.NSDK.AR ←Input

GetKeyDown

Returns true during the frame the user starts pressing down the key identified by the key KeyCode enum parameter.

Declaration​

public static bool GetKeyDown(KeyCode key)

Summary​

Returns true during the frame the user starts pressing down the key identified by the key KeyCode enum parameter.

Parameters​

NameTypeSummary
keyKeyCode
-

Overload​

public static bool GetKeyDown(string name)

Summary​

Returns true during the frame the user starts pressing down the key identified by name.

Parameters​

NameTypeSummary
keyKeyCode
-