mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-13 11:41:44 +00:00
Added MouseManager class api docs
This commit is contained in:
parent
27cc44ace2
commit
eea80ff80e
1 changed files with 13 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ namespace Cosmos.System
|
|||
FifthButton = 0b0001_0000
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mouse manager class.
|
||||
/// </summary>
|
||||
public static class MouseManager
|
||||
{
|
||||
private static List<MouseBase> mMouseList = new List<MouseBase>();
|
||||
|
|
@ -103,6 +106,9 @@ namespace Cosmos.System
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mouse manager constructor.
|
||||
/// </summary>
|
||||
static MouseManager()
|
||||
{
|
||||
foreach (var mouse in HAL.Global.GetMouseDevices())
|
||||
|
|
@ -111,6 +117,13 @@ namespace Cosmos.System
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Mouse handler.
|
||||
/// </summary>
|
||||
/// <param name="aDeltaX">Mouse location change on X axis.</param>
|
||||
/// <param name="aDeltaY">Mouse location change on Y axis.</param>
|
||||
/// <param name="aMouseState">Mouse pressed button state</param>
|
||||
/// <param name="aScrollWheel">unused</param>
|
||||
public static void HandleMouse(int aDeltaX, int aDeltaY, int aMouseState, int aScrollWheel)
|
||||
{
|
||||
int x = (int)(X + MouseSensitivity * aDeltaX);
|
||||
|
|
|
|||
Loading…
Reference in a new issue