MouseDragTrigger Button Property Delta Engine Documentation

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

public MouseButton Button { get; }

Property Value

Type: MouseButton
Remarks

Tests: DeltaEngine.Input.Tests.MouseDragTriggerTests
Examples

2 unit tests call DeltaEngine.Input.MouseDragTrigger.Button
[Test, CloseAfterFirstFrame]
public void Create()
{
    Assert.AreEqual(MouseButton.Left, new MouseDragTrigger().Button);
    Assert.AreEqual(MouseButton.Right, new MouseDragTrigger(MouseButton.Right).Button);
}
[Test, CloseAfterFirstFrame]
public void CreateFromAttributes()
{
    Assert.AreEqual(MouseButton.Left,
        new MouseDragTrigger(new Dictionary<string, string>()).Button);
    Assert.AreEqual(MouseButton.Right,
        new MouseDragTrigger(new Dictionary<string, string> { { "Button", "Right" } }).Button);
}
See Also