Inputs.GetKey - screenshakes/Desktopia GitHub Wiki
Returns true while the key is hold.
public static bool GetKey(KeyCode keyCode)
{
return hold.Contains(keyCode);
}
Returns true the first frame the key is pressed.
public static bool GetKeyDown(KeyCode keyCode)
{
return down.Contains(keyCode);
}
Returns true the during frame the key is released.
public static bool GetKeyUp(KeyCode keyCode)
{
return up.Contains(keyCode);
}
Returns true while any key is hold.
public static bool GetAnyKey()
{
return hold.Count > 0;
}
Returns true if any key was pressed during the frame.
public static bool GetAnyKeyDown()
{
return down.Count > 0;
}
Returns true if any key was released during the frame.
public static bool GetAnyKeyUp()
{
return up.Count > 0;
}