TouchDragTriggerTests Create 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 Create()
Examples

[Test]
public void DragTouchToCreateRectangles()
{
    MouseDragTriggerTests.DragToCreateRectangles(new TouchDragTrigger());
}
[Test, CloseAfterFirstFrame]
public void Create()
{
    var trigger = new TouchDragTrigger();
    Assert.AreEqual(DragDirection.Free, trigger.Direction);
    trigger =
        new TouchDragTrigger(new Dictionary<string, string> { { "Direction", "Horizontal" } });
See Also