Esempio n. 1
0
    // ------------------
    /// \brief Input.GetKeyUp() replacement.
    ///
    /// Returns true when active controller's control with matching KeyCode OR an actual KeyCode was just released.
    // ------------------
    static public bool GetKeyUp(KeyCode key)
    {
        if (ControllerActive())
        {
            bool keySupported = false;
            bool keyState     = ctrl.GetKeyUpEx(key, out keySupported);
            if (keySupported)
            {
                return(keyState);
            }
        }

        return(Input.GetKeyUp(key));
    }