public void AddEndDragListener(string compName, InputEventHandle <InputUIOnEndDragEvent> callback, string parm = null) { InputEventRegisterInfo <InputUIOnEndDragEvent> info = InputUIEventProxy.GetOnEndDragListener(GetDragComp(compName), UIEventKey, compName, parm, callback); info.AddListener(); m_EndDragEvents.Add(info); }
public void AddLongPressListener(string compName, InputEventHandle <InputUILongPressEvent> callback, string parm = null) { InputEventRegisterInfo <InputUILongPressEvent> info = InputUIEventProxy.GetLongPressListener(GetLongPressComp(compName), UIEventKey, compName, parm, callback); info.AddListener(); m_LongPressEvents.Add(info); }