Namespace: DeltaEngine.Input.Windows.Tests
Assembly: DeltaEngine.Input.Windows.Tests (in DeltaEngine.Input.Windows.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Windows.Tests (in DeltaEngine.Input.Windows.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void UpdateTouchWithoutAnyActiveTouch() { var newTouches = new List<NativeTouchInput>(); 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]); touchCollection.UpdateTouchBy(0, newTouches); Assert.AreEqual(-1, touchCollection.ids[0]); Assert.AreEqual(State.Released, touchCollection.states[0]); }
See Also