MouseMessage ClassDelta Engine Documentation
Mouse input message for remote input via networking. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Input MouseMessage

Namespace: DeltaEngine.Input
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class MouseMessage

The MouseMessage type exposes the following members.

Constructors

  NameDescription
Protected methodMouseMessage 
Initializes a new instance of the MouseMessage class
Public methodMouseMessage(Vector2D, Int32,  MouseButton )
Initializes a new instance of the MouseMessage class
Top
Properties

  NameDescription
Public propertyPosition
Public propertyPressedButtons
Public propertyScrollWheel
Top
Remarks

Tests: DeltaEngine.Input.Tests.MouseMessageTests
Examples

1 unit tests call DeltaEngine.Input.MouseMessage
[Test]
public void VerifyMouseMessagePropertiesAreSet()
{
    Assert.AreEqual(Vector2D.Half, mouseMessage.Position);
    Assert.AreEqual(0, mouseMessage.ScrollWheel);
    Assert.AreEqual(new[] { MouseButton.Left }, mouseMessage.PressedButtons);
}
See Also