static InputUIOnScrollEvent GetOnScrollEvent(string UIName, string ComponentName, string parm, Vector2 position)
        {
            InputUIOnScrollEvent msg = GetUIEvent <InputUIOnScrollEvent>(UIName, ComponentName, parm);

            msg.m_pos = position;

            return(msg);
        }
 public static void DispatchScrollEvent(string UIName, string ComponentName, string parm, Vector2 position)
 {
     //只有允许输入时才派发事件
     if (IsActive)
     {
         InputUIOnScrollEvent e = GetOnScrollEvent(UIName, ComponentName, parm, position);
         InputMessageManager.Dispatch("InputUIOnScrollEvent", e);
     }
 }
        public static InputEventRegisterInfo <InputUIOnScrollEvent> GetOnScrollListener(string UIName, string ComponentName, InputEventHandle <InputUIOnScrollEvent> callback)
        {
            InputEventRegisterInfo <InputUIOnScrollEvent> info = HeapObjectPool <InputEventRegisterInfo <InputUIOnScrollEvent> > .GetObject();

            info.eventKey = InputUIOnScrollEvent.GetEventKey(UIName, ComponentName);
            info.callBack = callback;

            InputMessageManager.AddListener(
                InputUIOnScrollEvent.GetEventKey(UIName, ComponentName), callback);

            return(info);
        }