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); }
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); }
protected override bool ImpGetButton(ButtonCodes button) { QuickButtonControl tmp = GetInputControlButton(_inputDevice, button); return(tmp != null ? tmp.isPressed : false); }