MousePositionTriggerTests ShowRedCircleOnMouseClickWithMovement 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 ShowRedCircleOnMouseClickWithMovement()
Examples

[Test]
public void ShowRedCircleOnMouseClickWithMovement()
{
    var ellipse = new Ellipse(new Rectangle(-0.1f, -0.1f, 0.1f, 0.1f), Color.Red);
    new Command(pos => ellipse.Center = pos).Add(new MousePositionTrigger(MouseButton.Left,
        State.Pressed));
}
See Also