MockMouse ClassDelta Engine Documentation
Mock mouse for unit testing. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Entities UpdateBehavior
    DeltaEngine.Input InputDevice
      DeltaEngine.Input Mouse
        DeltaEngine.Input.Mocks MockMouse

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

public sealed class MockMouse : Mouse

The MockMouse type exposes the following members.

Constructors

  NameDescription
Public methodMockMouse
Initializes a new instance of the MockMouse class
Top
Methods

  NameDescription
Public methodDispose
Releases all resources used by the MockMouse
(Overrides InputDevice Dispose .)
Public methodGetButtonState (Inherited from Mouse.)
Public methodScrollDown
Public methodScrollUp
Public methodSetButtonState
Public methodSetNativePosition (Overrides Mouse SetNativePosition(Vector2D).)
Public methodUpdate (Overrides Mouse Update(IEnumerable Entity ).)
Top
Properties

  NameDescription
Public propertyIsAvailable (Overrides InputDevice IsAvailable.)
Public propertyLeftButton (Inherited from Mouse.)
Public propertyMiddleButton (Inherited from Mouse.)
Public propertyPosition (Inherited from Mouse.)
Public propertyRightButton (Inherited from Mouse.)
Public propertyScrollWheelValue
Total accumulated mouse scroll wheel value. Compare with last frame to see the change (see MouseZoomTrigger). Will not use multipliers like 120 to report one mouse wheel up change. One mouse wheel up change results in a value change of +1, down is -1. View code on GitHub
(Inherited from Mouse.)
Public propertyX1Button (Inherited from Mouse.)
Public propertyX2Button (Inherited from Mouse.)
Top
See Also