MouseFlickTriggerTests ShowRedCircleOnFlick 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 ShowRedCircleOnFlick()
Examples

[Test]
public void ShowRedCircleOnFlick()
{
    new FontText(Font.Default, "Flick 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(() => ellipse.Center = Vector2D.Half).Add(new MouseFlickTrigger());
    new Command(() => ellipse.Center = Vector2D.Zero).Add(new MouseButtonTrigger(State.Released));
}
See Also