TouchCollectionTests ProcessNewTouches Method Delta Engine Documentation

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

public void ProcessNewTouches()
Examples

[Test, CloseAfterFirstFrame]
public void ProcessNewTouches()
{
    var newTouches = new List<NativeTouchInput> { GetTestTouchInput() };
    touchCollection.ProcessNewTouches(newTouches);
    Assert.AreEqual(15, touchCollection.ids[0]);
    Assert.AreEqual(ScreenSpace.Current.FromPixelSpace(new Vector2D(400, 300)),
        touchCollection.locations[0]);
    Assert.AreEqual(State.Pressing, touchCollection.states[0]);
}
See Also