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 UpdateTouchWithUpdatedActiveTouch() { var newTouches = new List<NativeTouchInput> { GetTestTouchInput() }; touchCollection.ids[0] = 15; touchCollection.states[0] = State.Pressing; touchCollection.UpdatePreviouslyActiveTouches(newTouches); Assert.AreEqual(0, newTouches.Count); Assert.AreEqual(15, touchCollection.ids[0]); Assert.AreEqual(ScreenSpace.Current.FromPixelSpace(new Vector2D(400, 300)), touchCollection.locations[0]); Assert.AreEqual(State.Pressed, touchCollection.states[0]); }
See Also