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 CheckMouseAndTriggerPosition() { var mouse = Resolve<Mouse>() as MockMouse; if (mouse == null) return; //ncrunch: no coverage var trigger = new MousePositionTrigger(MouseButton.Right, State.Pressed); trigger.Movement = Vector2D.Zero; mouse.SetNativePosition(trigger.Movement); Assert.AreEqual(mouse.Position, trigger.Movement); }
See Also