* Source/OpenTK/Platform/Windows/API.cs:

* Source/OpenTK/Platform/Windows/WinGLNative.cs: Implemented
  CursorVisible.
This commit is contained in:
the_fiddler 2010-10-18 16:14:38 +00:00
parent e1cf566c81
commit 60a9af5939
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -843,7 +843,7 @@ namespace OpenTK.Platform.Windows
public bool CursorVisible
{
get { return true; }
set { }
set { Functions.ShowCursor(value); }
}
#endregion