public static void Postfix() { if (VROptions.GetUseGazeBasedCursor() && GameInput.GetButtonDown(uGUI.button3)) { Inventory.main.ExecuteItemAction(ItemDragManager.hoveredItem, 3); VROptions.gazeBasedCursor = false; _didDisableGazeCursor = true; } }
public static bool Prefix() { if (VROptions.GetUseGazeBasedCursor()) { KeyboardInputSpoofer.ShouldSpoofKeyboard = true; _didSpoofKeyboard = true; } return(true); }
public static void Fix(ref uGUI_GraphicRaycaster raycaster, uGUI_InputGroup __instance) { if (GameInput.IsPrimaryDeviceGamepad() && !VROptions.GetUseGazeBasedCursor()) { raycaster.enabled = false; } else { raycaster.enabled = __instance.focused; } }