Namespace: DeltaEngine.Input
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Input.Windows.Tests.WindowsMouseTests
1 unit tests call DeltaEngine.Input.Mouse.Position
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Vector2DRemarks
Examples
[Test, Ignore] public void SetPositionAndUpdateTrigger() { var setPoint = new Vector2D(0.8f, 0.4f); var moveTrigger = new MouseHoverTrigger(); mouse.SetNativePosition(setPoint); mouse.Update(new List<Entity>(new[] { moveTrigger })); Assert.AreEqual(setPoint.X, moveTrigger.LastPosition.X, 0.1f); Assert.AreEqual(setPoint.Y, moveTrigger.LastPosition.Y, 0.1f); }
See Also