TouchTests ShowRedCircleOnTouchAtTouchPosition Method Delta Engine Documentation

Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ShowRedCircleOnTouchAtTouchPosition()
Examples

[Test]
public void ShowRedCircleOnTouchAtTouchPosition()
{
    new FontText(Font.Default, "Touch screen to show red circle", Rectangle.One);
    var ellipse = new Ellipse(new Rectangle(0.1f, 0.1f, 0.1f, 0.1f), Color.Red);
    new Command(() => TranslateOnTouch(ellipse)).Add(new TouchPressTrigger(State.Pressed));
}
See Also