GetCursor function.
authorFraser <frassle@gmail.com>
Fri, 21 Feb 2014 00:01:27 +0000 (00:01 +0000)
committerthefiddler <stapostol@gmail.com>
Sun, 27 Apr 2014 08:53:32 +0000 (10:53 +0200)
Source/OpenTK/Platform/Windows/API.cs

index fc4a3a1..5ab400b 100644 (file)
@@ -1138,6 +1138,16 @@ namespace OpenTK.Platform.Windows
         [DllImport("user32.dll")]
         public static extern HCURSOR SetCursor(HCURSOR hCursor);
 
+        /// <summary>
+        /// Retrieves a handle to the current cursor.
+        /// </summary>
+        /// <returns>
+        /// The return value is the handle to the current cursor. If there is 
+        /// no cursor, the return value is null.
+        /// </returns>
+        [DllImport("user32.dll")]
+        public static extern HCURSOR GetCursor();
+
         #region Async input
 
         #region GetCursorPos