Class MouseManager
Manages the mouse.
Inheritance
System.Object
MouseManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public static class MouseManager
Fields
| Improve this Doc View SourceLastMouseState
The state the mouse was in the last frame.
Declaration
public static MouseState LastMouseState
Field Value
Type | Description |
---|---|
MouseState |
MouseSensitivity
The sensitivity of the mouse, 1.0f is the default.
Declaration
public static float MouseSensitivity
Field Value
Type | Description |
---|---|
System.Single |
MouseState
The state the mouse is currently in.
Declaration
public static MouseState MouseState
Field Value
Type | Description |
---|---|
MouseState |
X
The X location of the mouse.
Declaration
public static uint X
Field Value
Type | Description |
---|---|
System.UInt32 |
Y
The Y location of the mouse.
Declaration
public static uint Y
Field Value
Type | Description |
---|---|
System.UInt32 |
Properties
| Improve this Doc View SourceDeltaX
The 'delta' mouse movement for X.
Declaration
public static int DeltaX { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DeltaY
The 'delta' mouse movement for Y.
Declaration
public static int DeltaY { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ScreenHeight
The screen height (i.e. max value of Y).
Declaration
public static uint ScreenHeight { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ScreenWidth
The width of the mouse screen area (i.e. max value of X).
Declaration
public static uint ScreenWidth { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ScrollDelta
The 'delta' for the mouse scroll wheel. Needs to be manually reset.
Declaration
public static int ScrollDelta { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ScrollWheelPresent
Declaration
public static bool ScrollWheelPresent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceHandleMouse(Int32, Int32, Int32, Int32)
Handles mouse input.
Declaration
public static void HandleMouse(int deltaX, int deltaY, int mouseState, int scrollWheel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | deltaX | Mouse location change on X axis. |
System.Int32 | deltaY | Mouse location change on Y axis. |
System.Int32 | mouseState | Mouse pressed button state |
System.Int32 | scrollWheel | Unused in this implementation. |
ResetScrollDelta()
Reset the scroll delta to 0.
Declaration
public static void ResetScrollDelta()