add Hidden property to Mouse

remotes/1695061714407202320/main
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()