TouchPositionTrigger Movement Property Delta Engine Documentation

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

public Vector2D Movement { get; set; }

Property Value

Type: Vector2D

Implements

MovementTrigger Movement
Remarks

Tests: DeltaEngine.Input.Tests.TouchPositionTriggerTests
Examples

1 unit tests call DeltaEngine.Input.TouchPositionTrigger.Movement
[Test]
public void ShowRedCircleOnTouchWithMovement()
{
    var ellipse = new Ellipse(new Rectangle(-0.1f, -0.1f, 0.1f, 0.1f), Color.Red);
    new Command(pos => ellipse.Center = pos).Add(new TouchPositionTrigger(State.Pressed));
}
See Also