mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 14:45:39 +00:00
Move cursor visible check into implementations
This commit is contained in:
parent
fe65c87d81
commit
673c922b72
|
@ -476,11 +476,7 @@ namespace OpenTK
|
|||
public bool CursorVisible
|
||||
{
|
||||
get { return implementation.CursorVisible; }
|
||||
set
|
||||
{
|
||||
if (value == implementation.CursorVisible) return;
|
||||
implementation.CursorVisible = value;
|
||||
}
|
||||
set { implementation.CursorVisible = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -508,6 +508,7 @@ namespace OpenTK.Platform.Linux
|
|||
}
|
||||
set
|
||||
{
|
||||
if (value == is_cursor_visible) return;
|
||||
if (value && !is_cursor_visible)
|
||||
{
|
||||
SetCursor(cursor_current);
|
||||
|
|
|
@ -1239,6 +1239,7 @@ namespace OpenTK.Platform.MacOS
|
|||
get { return cursorVisible; }
|
||||
set
|
||||
{
|
||||
if (value == cursorVisible) return;
|
||||
if (value && !cursorVisible)
|
||||
{
|
||||
SetCursorVisible(true);
|
||||
|
|
|
@ -933,6 +933,7 @@ namespace OpenTK.Platform.SDL2
|
|||
}
|
||||
set
|
||||
{
|
||||
if (value == is_cursor_visible) return;
|
||||
lock (sync)
|
||||
{
|
||||
if (Exists)
|
||||
|
|
Loading…
Reference in a new issue