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); }
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 AddOnClickListener(string buttonName, InputEventHandle <InputUIOnClickEvent> callback, string parm = null) { InputButtonClickRegisterInfo info = InputUIEventProxy.GetOnClickListener(GetButton(buttonName), UIEventKey, buttonName, parm, callback); info.AddListener(); m_OnClickEvents.Add(info); }
public void AddOnClickListenerByCreate(Button button, string compName, InputEventHandle <InputUIOnClickEvent> callback, string parm = null) { InputButtonClickRegisterInfo info = InputUIEventProxy.GetOnClickListener(button, UIEventKey, compName, parm, callback); info.AddListener(); m_OnClickEvents.Add(info); }
public virtual void InitEvent(string UIEventKey) { m_UIEventKey = UIEventKey; m_begionDrag = InputUIEventProxy.GetOnBeginDragListener(m_UIEventKey, name, name, OnBeginDragEvent); m_onDrag = InputUIEventProxy.GetOnDragListener(m_UIEventKey, name, name, OnDragEvent); m_endDrag = InputUIEventProxy.GetOnEndDragListener(m_UIEventKey, name, name, OnEndDragEvent); }
public virtual void InitEvent(string UIEventKey) { m_UIEventKey = UIEventKey; m_begionDrag = InputUIEventProxy.GetOnBeginDragListener(m_UIEventKey, name, name, OnBeginDragEvent); m_onDrag = InputUIEventProxy.GetOnDragListener(m_UIEventKey, name, name, OnDragEvent); m_endDrag = InputUIEventProxy.GetOnEndDragListener(m_UIEventKey, name, name, OnEndDragEvent); inputUIOnMouseEventDown = InputUIEventProxy.GetOnMouseListener(m_UIEventKey, name, name, true, OnMouseDownEvent); inputUIOnMouseEventUp = InputUIEventProxy.GetOnMouseListener(m_UIEventKey, name, name, false, OnMouseUpEvent); }
private void OnMouseUp() { InputUIEventProxy.DispatchMouseEvent(name, name, false, null); }
private void OnMouseDown() { InputUIEventProxy.DispatchMouseEvent(name, name, true, null); }
public virtual void InitEvent(string UIEventKey) { m_UIEventKey = UIEventKey; InputUIEventProxy.GetOnMouseListener(m_UIEventKey, name, name, true, OnMouseDownEvent); InputUIEventProxy.GetOnMouseListener(m_UIEventKey, name, name, false, OnMouseUpEvent); }
public virtual void Init(string UIEventKey) { m_UIEventKey = UIEventKey; InputUIEventProxy.AddOnScrollListener(m_UIEventKey, name, OnSetContentAnchoredPosition); }
protected override void SetContentAnchoredPosition(Vector2 position) { InputUIEventProxy.DispatchScrollEvent(m_UIEventKey, name, "", position); }
public void OnEndDrag(PointerEventData eventData) { InputUIEventProxy.DispatchEndDragEvent(name, name, null, eventData); }
protected void AddOnClickListener(string buttonName, InputEventHandle <InputUIOnClickEvent> callback, string parm = null) { InputEventRegisterInfo <InputUIOnClickEvent> info = InputUIEventProxy.AddOnClickListener(GetButton(buttonName), UIEventKey, buttonName, parm, callback); m_OnClickEvents.Add(info); }
public virtual void Init(string UIEventKey, int id) { m_UIEventKey = UIEventKey; m_register = InputUIEventProxy.GetOnScrollListener(m_UIEventKey, name, OnSetContentAnchoredPosition); }
public void OnPointerUp(PointerEventData eventData) { InputUIEventProxy.DispatchMouseEvent(name, name, false, null); }
public void OnPointerDown(PointerEventData eventData) { InputUIEventProxy.DispatchMouseEvent(name, name, true, null); }