コード例 #1
0
        private void UpdateMousePosition()
        {
            m_LastMousePosition = m_MousePosition;
            m_MousePosition     = UnityEngine.Input.mousePosition;

            if (CachedVirtualMouse != null)
            {
                m_LastVirtualMousePosition = m_VirtualMousePosition;
                m_VirtualMousePosition     = CachedVirtualMouse.GetVirtualMousePosition();
            }
        }
コード例 #2
0
        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;
        }