Ejemplo n.º 1
0
        public static bool GetKey(ButtonCodes key)
        {
            XRController controller = GetXRController(key);

            if (controller != null)
            {
                QuickButtonControl bControl = GetInputControlButton(controller, key);
                return(bControl != null && bControl.isPressed);
            }

            return(false);
        }
Ejemplo n.º 2
0
        public static bool GetKeyUp(ButtonCodes key)
        {
            XRController controller = GetXRController(key);

            if (controller != null)
            {
                QuickButtonControl bControl = GetInputControlButton(controller, key);
                return(bControl != null && bControl.wasReleasedThisFrame);
            }

            return(false);
        }
Ejemplo n.º 3
0
        protected override bool ImpGetButton(ButtonCodes button)
        {
            QuickButtonControl tmp = GetInputControlButton(_inputDevice, button);

            return(tmp != null ? tmp.isPressed : false);
        }