private void UpdateMousePosition() { m_LastMousePosition = m_MousePosition; m_MousePosition = UnityEngine.Input.mousePosition; if (CachedVirtualMouse != null) { m_LastVirtualMousePosition = m_VirtualMousePosition; m_VirtualMousePosition = CachedVirtualMouse.GetVirtualMousePosition(); } }
private void InitialiseMousePosition() { m_MousePosition = UnityEngine.Input.mousePosition; m_LastMousePosition = UnityEngine.Input.mousePosition; if (CachedVirtualMouse != null) { m_VirtualMousePosition = CachedVirtualMouse.GetVirtualMousePosition(); m_LastVirtualMousePosition = CachedVirtualMouse.GetVirtualMousePosition(); } m_ActiveMouseType = EMouseCursorType.Hardware; _initialised = true; }