Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void DragTouchVertical() { if (touch == null) return; //ncrunch: no coverage bool isFinished = false; new Command((start, end, done) => isFinished = done).Add( new TouchDragTrigger(DragDirection.Vertical)); SetTouchState(State.Pressing, Vector2D.Zero); SetTouchState(State.Pressed, new Vector2D(0, 1)); SetTouchState(State.Releasing, new Vector2D(0, 1)); Assert.IsTrue(isFinished); }
See Also