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 Angle() { var touch = Resolve<Touch>() as MockTouch; if (touch == null) return; //ncrunch: no coverage var trigger = new TouchRotateTrigger(); touch.SetTouchState(0, State.Pressing, new Vector2D(0.5f, 0.1f)); touch.SetTouchState(1, State.Pressed, new Vector2D(0.5f, 0.7f)); touch.Update(new[] { trigger });
See Also