TouchCollectionTests UpdateTouchIfPreviouslyPresentWithMultipleNewTouches 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 UpdateTouchIfPreviouslyPresentWithMultipleNewTouches()
Examples

[Test, CloseAfterFirstFrame]
public void UpdateTouchIfPreviouslyPresentWithMultipleNewTouches()
{
    var newTouches = new List<NativeTouchInput>
    {
        new NativeTouchInput(3, 0, 0, 0),
        new NativeTouchInput(15, 0, 0, 0),
    };
    touchCollection.ids[0] = 15;
    touchCollection.states[0] = State.Releasing;
    touchCollection.UpdateTouchBy(0, newTouches);
    Assert.AreEqual(15, touchCollection.ids[0]);
    Assert.AreEqual(State.Released, touchCollection.states[0]);
}
See Also