diff options
Diffstat (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs')
-rw-r--r-- | Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs index 4f04f42..58ac97c 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs @@ -4,13 +4,15 @@ using UnityEngine.Serialization; namespace UnityEngine.EventSystems { - [Obsolete("TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.")] + //c TouchInputModule被废弃了,统一在standaloneInputModule中处理 + [Obsolete("TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.")] [AddComponentMenu("Event/Touch Input Module")] public class TouchInputModule : PointerInputModule { protected TouchInputModule() {} + // 触摸点位置 private Vector2 m_LastMousePosition; private Vector2 m_MousePosition; @@ -31,6 +33,7 @@ namespace UnityEngine.EventSystems set { m_ForceModuleActive = value; } } + //c 更新鼠标(触摸点)位置 public override void UpdateModule() { m_LastMousePosition = m_MousePosition; |