Example #1
0
    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);
    }
Example #2
0
    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);
    }
Example #3
0
    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);
    }
Example #4
0
    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);
 }
Example #6
0
 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);
 }
Example #7
0
 private void OnMouseUp()
 {
     InputUIEventProxy.DispatchMouseEvent(name, name, false, null);
 }
Example #8
0
 private void OnMouseDown()
 {
     InputUIEventProxy.DispatchMouseEvent(name, name, true, null);
 }
Example #9
0
 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);
 }
Example #13
0
    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);
 }
Example #15
0
 public void OnPointerUp(PointerEventData eventData)
 {
     InputUIEventProxy.DispatchMouseEvent(name, name, false, null);
 }
Example #16
0
 public void OnPointerDown(PointerEventData eventData)
 {
     InputUIEventProxy.DispatchMouseEvent(name, name, true, null);
 }