* Source/OpenTK/Platform/Windows/API.cs:
* Source/OpenTK/Platform/Windows/WinGLNative.cs: Implemented CursorVisible.
This commit is contained in:
parent
e1cf566c81
commit
60a9af5939
2 changed files with 7 additions and 1 deletions
|
@ -951,6 +951,12 @@ namespace OpenTK.Platform.Windows
|
|||
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
|
||||
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 GetCursorPos
|
||||
|
|
|
@ -843,7 +843,7 @@ namespace OpenTK.Platform.Windows
|
|||
public bool CursorVisible
|
||||
{
|
||||
get { return true; }
|
||||
set { }
|
||||
set { Functions.ShowCursor(value); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue