Tinkr2/4.2/AphelionCore/AphelionCore/Controls/Control.cs
/// <summary>
/// Directly inform control of touch down event
/// </summary>
/// <param name="sender">Object sending the event</param>
/// <param name="point">Point on screen touch event is occurring</param>
Directly inform control of touch down event
Directly inform control of touch down event
public void SendTouchDown(object sender, point point)
      {
         if (!_enabled || !_visible || _suspended)
         {
            return;
         }
         bool bHandled = false;
         TouchDownMessage(sender, point, ref bHandled);
         if (bHandled)
         {
            return;
         }
         _mDown = true;
         _ptTapHold = point;
         _eTapHold = TapState.TapHoldWaiting;
         _lStop = DateTime.Now.Ticks + (500 * TimeSpan.TicksPerMillisecond);
         if (_thHold == null || !_thHold.IsAlive)
         {
            _thHold = new Thread(TapHoldWaiter);
            _thHold.Start();
         }
         OnTouchDown(sender, point);
      }
public void SendTouchDown ( object sender , point point ) { if ( ! _enabled || ! _visible || _suspended ) { return ; } bool bHandled = false ; TouchDownMessage ( sender , point , ref bHandled ) ; if ( bHandled ) { return ; } _mDown = true ; _ptTapHold = point ; _eTapHold = TapState . TapHoldWaiting ; _lStop = DateTime . Now . Ticks + ( 500 * TimeSpan . TicksPerMillisecond ) ; if ( _thHold == null || ! _thHold . IsAlive ) { _thHold = new Thread ( TapHoldWaiter ) ; _thHold . Start ( ) ; } OnTouchDown ( sender , point ) ; }
Directly inform control of touch down event
Directly inform control of touch down event
// Exit if needed // Allow Override // Exit if handled // Set down state // Begin Tap/Hold // Raise Event
sender
object
Object sending the event
Object sending the event
point
point
Point on screen touch event is occurring
Point on screen touch event is occurring