Click or drag to resize
IMouseInput Interface
Define the interface GeonBit.UI uses to get mouse or mouse-like input from users.

Namespace:  GeonBit.UI
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public interface IMouseInput

The IMouseInput type exposes the following members.

Properties
  NameDescription
Public propertyMousePosition
Get current mouse poisition.
Public propertyMousePositionDiff
Get mouse position change since last frame.
Public propertyMouseWheel
Current mouse wheel value.
Public propertyMouseWheelChange
Mouse wheel change sign (eg 0, 1 or -1) since last frame.
Top
Methods
  NameDescription
Public methodAnyMouseButtonClicked
Return if any of mouse buttons was clicked this frame.
Public methodAnyMouseButtonDown
Return if any of mouse buttons is down.
Public methodAnyMouseButtonPressed
Return if any mouse button was pressed in current frame.
Public methodAnyMouseButtonReleased
Return if any mouse button was released this frame.
Public methodMouseButtonClick
Check if a given mouse button was just clicked (eg released after being pressed down)
Public methodMouseButtonDown
Check if a given mouse button is down.
Public methodMouseButtonPressed
Check if a given mouse button was pressed in current frame.
Public methodMouseButtonReleased
Check if a given mouse button was released in current frame.
Public methodTransformMousePosition
Calculate and return current cursor position transformed by a matrix.
Public methodUpdate
Update input (called every frame).
Public methodUpdateMousePosition
Move the cursor to be at the center of the screen.
Top
See Also