Example #1
0
        private void ProcessMove(ref EventArgsExtFare e)
        {
            m_PreviousPosition = e.Point;

            OnMove(e);
            OnMoveExt(e);
        }
 private bool IsDoubleClick(EventArgsExtFare e)
 {
     return
         (e.Button == m_PreviousClicked &&
          e.Point == m_PreviousClickedPosition && // Click-move-click exception, see Patch 11222
          e.ZamanDamgasý - m_PreviousClickedTime <= m_SystemDoubleClickTime);
 }
 protected override void ProcessDown(ref EventArgsExtFare e)
 {
     if (IsDoubleClick(e))
     {
         e = e.ToDoubleClickEventArgs();
     }
     base.ProcessDown(ref e);
 }
Example #4
0
        protected virtual void OnUpExt(EventArgsExtFare e)
        {
            var handler = MouseUpExt;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected override void ProcessUp(ref EventArgsExtFare e)
        {
            base.ProcessUp(ref e);
            if (e.Clicks == 2)
            {
                StopDoubleClickWaiting();
            }

            if (e.Clicks == 1)
            {
                StartDoubleClickWaiting(e);
            }
        }
Example #6
0
        protected virtual void ProcessDown(ref EventArgsExtFare e)
        {
            OnDown(e);
            OnDownExt(e);
            if (e.İşlendi)
            {
                return;
            }

            if (e.Clicks == 2)
            {
                m_DoubleDown.Add(e.Button);
            }

            if (e.Clicks == 1)
            {
                m_SingleDown.Add(e.Button);
            }
        }
Example #7
0
        protected virtual void ProcessUp(ref EventArgsExtFare e)
        {
            if (m_SingleDown.İçerir(e.Button))
            {
                OnUp(e);
                OnUpExt(e);
                if (e.İşlendi)
                {
                    return;
                }
                OnClick(e);
                m_SingleDown.Kaldır(e.Button);
            }

            if (m_DoubleDown.İçerir(e.Button))
            {
                e = e.ToDoubleClickEventArgs();
                OnUp(e);
                OnDoubleClick(e);
                m_DoubleDown.Kaldır(e.Button);
            }
        }
Example #8
0
 protected override EventArgsExtFare GetEventArgs(CallbackData data)
 {
     return(EventArgsExtFare.FromRawDataApp(data));
 }
 private void StartDoubleClickWaiting(EventArgsExtFare e)
 {
     m_PreviousClicked         = e.Button;
     m_PreviousClickedTime     = e.ZamanDamgasý;
     m_PreviousClickedPosition = e.Point;
 }
Example #10
0
 protected virtual void ProcessWheel(ref EventArgsExtFare e)
 {
     OnWheel(e);
 }