public override void Update(ref IUIInput input) { if (input.EventArgs is MouseButtonEventArgs) { input.ClickCount = (input.EventArgs as MouseButtonEventArgs).ClickCount; } else if (input.InputType == UIInputType.Touch && input.InputState == UIInputState.Pressed) { //touchPts.First().Action == TouchAction. if (DateTime.UtcNow.Subtract(_lastClickTime).TotalMilliseconds < Defaults.MaximumClickInterval && input.IsWithin(_startInput, Defaults.MaximumTouchClickDragDistance.X, Defaults.MaximumTouchClickDragDistance.Y)) { _clickCount += 1; input.ClickCount = _clickCount; } else { _startInput = input; _clickCount = 1; } _lastClickTime = DateTime.UtcNow; } //else _clickCount = 0; }