add Hidden property to Mouse
parent
bd825b6c91
commit
472da0edd2
|
@ -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;
|
private readonly Dictionary<MouseButtonCode, MouseButton> CodeToButton;
|
||||||
|
|
||||||
public Mouse()
|
public Mouse()
|
||||||
|
|
Loading…
Reference in New Issue