コード例 #1
0
 public static void Postfix()
 {
     if (VROptions.GetUseGazeBasedCursor() && GameInput.GetButtonDown(uGUI.button3))
     {
         Inventory.main.ExecuteItemAction(ItemDragManager.hoveredItem, 3);
         VROptions.gazeBasedCursor = false;
         _didDisableGazeCursor     = true;
     }
 }
コード例 #2
0
        public static bool Prefix()
        {
            if (VROptions.GetUseGazeBasedCursor())
            {
                KeyboardInputSpoofer.ShouldSpoofKeyboard = true;
                _didSpoofKeyboard = true;
            }

            return(true);
        }
コード例 #3
0
ファイル: RaycastFixer.cs プロジェクト: MrPurple6411/VRTweaks
 public static void Fix(ref uGUI_GraphicRaycaster raycaster, uGUI_InputGroup __instance)
 {
     if (GameInput.IsPrimaryDeviceGamepad() && !VROptions.GetUseGazeBasedCursor())
     {
         raycaster.enabled = false;
     }
     else
     {
         raycaster.enabled = __instance.focused;
     }
 }