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] public void ShowRedSquare() { new FontText(Font.Default, "Pinch screen to show red circle", Rectangle.One); var rect = new FilledRect(new Rectangle(0.1f, 0.1f, 0.1f, 0.1f), Color.Red); var trigger = new TouchRotateTrigger(); var touch = Resolve<Touch>(); new Command(() => //ncrunch: no coverage start { rect.Center = touch.GetPosition(0); rect.RotationCenter = rect.Center; rect.Rotation = trigger.Angle; }).Add(trigger); //ncrunch: no coverage end }
See Also