Class MouseManager
Mouse manager class.
Inheritance
System.Object
MouseManager
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public static class MouseManager : object
Fields
| Improve this Doc View SourceMouseSensitivity
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 SourceScreenHeight
The screen height (i.e. max value of Y).
Declaration
public static uint ScreenHeight { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
ScreenWidth
The screen width (i.e. max value of X).
Declaration
public static uint ScreenWidth { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
| Improve this Doc View SourceHandleMouse(Int32, Int32, Int32, Int32)
Mouse handler.
Declaration
public static void HandleMouse(int aDeltaX, int aDeltaY, int aMouseState, int aScrollWheel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | aDeltaX | Mouse location change on X axis. |
System.Int32 | aDeltaY | Mouse location change on Y axis. |
System.Int32 | aMouseState | Mouse pressed button state |
System.Int32 | aScrollWheel | unused |