mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 09:01:06 +00:00
* Source/OpenTK/Platform/Windows/API.cs:
* Source/OpenTK/Platform/Windows/WinGLNative.cs: Implemented CursorVisible.
This commit is contained in:
parent
f201c3bed9
commit
d5aaf4a794
|
@ -951,6 +951,12 @@ namespace OpenTK.Platform.Windows
|
||||||
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
|
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
|
||||||
public static extern IntPtr SetFocus(IntPtr hwnd);
|
public static extern IntPtr SetFocus(IntPtr hwnd);
|
||||||
|
|
||||||
|
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
|
||||||
|
public static extern int ShowCursor(bool show);
|
||||||
|
|
||||||
|
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
|
||||||
|
public static extern bool ClipCursor(ref RECT rcClip);
|
||||||
|
|
||||||
#region Async input
|
#region Async input
|
||||||
|
|
||||||
#region GetCursorPos
|
#region GetCursorPos
|
||||||
|
|
|
@ -843,7 +843,7 @@ namespace OpenTK.Platform.Windows
|
||||||
public bool CursorVisible
|
public bool CursorVisible
|
||||||
{
|
{
|
||||||
get { return true; }
|
get { return true; }
|
||||||
set { }
|
set { Functions.ShowCursor(value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue