MouseHookTests TestGetMessageButton Method Delta Engine Documentation

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

public void TestGetMessageButton()
Examples

[Test]
public void TestGetMessageButton()
{
    Assert.AreEqual(MouseButton.Left, MouseHook.GetMessageButton(0x00A2, 0));
    Assert.AreEqual(MouseButton.Right, MouseHook.GetMessageButton(0x0205, 0));
    Assert.AreEqual(MouseButton.Middle, MouseHook.GetMessageButton(0x0209, 0));
    Assert.AreEqual(MouseButton.X1, MouseHook.GetMessageButton(0x020B, 65536));
    Assert.AreEqual(MouseButton.X2, MouseHook.GetMessageButton(0x020B, 0));
}
See Also