UnityEngine.Input.GetKeyDown C# (CSharp) Method

GetKeyDown() public static method

public static GetKeyDown ( KeyCode key ) : bool
key KeyCode
return bool
		public static bool GetKeyDown(KeyCode key) { return false; }
	}

Usage Example

コード例 #1
0
ファイル: Input.cs プロジェクト: popcron/input
    public static new bool GetKeyDown(KeyCode keyCode)
    {
        if (!Enabled)
        {
            return(false);
        }

        if (consumedKeys.Contains(keyCode))
        {
            return(false);
        }

#if UNITY_EDITOR
        if (IsOnWindows)
        {
            if (keysPressed.Contains(keyCode))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
#endif
        return(UnityInput.GetKeyDown(keyCode));
    }
All Usage Examples Of UnityEngine.Input::GetKeyDown