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 UpdateTouchState() { touchCollection.UpdateTouchState(0, NativeTouchInput.FlagTouchDown); Assert.AreEqual(State.Pressing, touchCollection.states[0]); touchCollection.UpdateTouchState(0, 0); Assert.AreEqual(State.Releasing, touchCollection.states[0]); }
[Test, CloseAfterFirstFrame] public void UpdateTouchStateWithoutNewData() { touchCollection.ids[0] = 15; touchCollection.states[0] = State.Releasing; touchCollection.UpdateTouchStateWithoutNewData(0); Assert.AreEqual(State.Released, touchCollection.states[0]); Assert.AreEqual(15, touchCollection.ids[0]); touchCollection.states[0] = State.Released; touchCollection.UpdateTouchStateWithoutNewData(0); Assert.AreEqual(State.Released, touchCollection.states[0]); Assert.AreEqual(-1, touchCollection.ids[0]); }
See Also