Beispiel #1
0
        public static bool GetKey(InputType type, InputKey key)
        {
            switch (type)
            {
            case InputType.LeftWand:
            case InputType.RightWand:
                if (ThreeGlassesManager.joyPad[(int)type] == null)
                {
                    return(false);
                }
                return(ThreeGlassesManager.joyPad[(int)type].GetKey(key));

            case InputType.HMD:
                return(ThreeGlassesManager.GetHmdKey(key));
            }
            return(false);
        }
Beispiel #2
0
 // get hmd touchpad
 public static Vector2 GetHMDTouchPad()
 {
     return(ThreeGlassesManager.GetHmdTouchPad());
 }