add Hidden property to Mouse

pull/47/head
cosmonaut 2023-03-01 13:47:25 -08:00
parent bd825b6c91
commit 472da0edd2
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,17 @@ namespace MoonWorks.Input
}
}
private bool hidden;
public bool Hidden
{
get => hidden;
set
{
hidden = value;
SDL.SDL_ShowCursor(hidden ? SDL.SDL_DISABLE : SDL.SDL_ENABLE);
}
}
private readonly Dictionary<MouseButtonCode, MouseButton> CodeToButton;
public Mouse()