GetSFKeyCode() public static method

public static GetSFKeyCode ( UnityEngine unityKeyCode ) : Code
unityKeyCode UnityEngine
return Code
Ejemplo n.º 1
0
        public bool HandleKeyUpEvent(UnityEngine.Event ev)
        {
            if (!IsSFInitialized())
            {
                return(false);
            }

            bool handled = false;

            SFKey.Code cd = SFKey.GetSFKeyCode(ev.keyCode);
            SFKeyModifiers.Modifiers modifiers = SFKey.GetSFModifiers(ev.modifiers);
            for (int i = 0; i < SFMovieList.Count; i++) // Loop through List with for
            {
                if (SFMovieList[i].HandleKeyEvent(cd, modifiers, 0))
                {
                    handled = true;
                }
            }
            return(handled);
        }