Namespace: DeltaEngine.Input
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Input.Tests.MouseTests
1 unit tests call DeltaEngine.Input.Mouse.GetButtonState(DeltaEngine.Input.MouseButton)
Assembly: DeltaEngine.Input (in DeltaEngine.Input.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- button
- Type: DeltaEngine.Input MouseButton
Return Value
Type: StateRemarks
Examples
[Test, CloseAfterFirstFrame] public void GetButtonState() { var mouse = Resolve<Mouse>(); Assert.AreEqual(State.Released, mouse.GetButtonState(MouseButton.Left)); Assert.AreEqual(State.Released, mouse.GetButtonState(MouseButton.Middle)); Assert.AreEqual(State.Released, mouse.GetButtonState(MouseButton.Right)); Assert.AreEqual(State.Released, mouse.GetButtonState(MouseButton.X1)); Assert.AreEqual(State.Released, mouse.GetButtonState(MouseButton.X2)); }
See Also