Make joystick ID public
authorcra0zy <cra0zy@gmail.com>
Sat, 5 Dec 2015 10:32:48 +0000 (11:32 +0100)
committercra0zy <cra0zy@gmail.com>
Sun, 6 Dec 2015 12:43:46 +0000 (13:43 +0100)
Source/OpenTK/Input/Joystick.cs

index f90634208c9c51b2fa577f8183646a12d6ee3f1f..3c79105b72248b4b68feed857efc59fb64339986 100644 (file)
@@ -79,7 +79,15 @@ namespace OpenTK.Input
             return implementation.GetState(index);
         }
 
-        internal static Guid GetGuid(int index)
+        /// <summary>
+        /// Retrieves the ID of the device connected
+        /// at the specified index.
+        /// </summary>
+        /// <returns>
+        /// A <see cref="Guid"/> representing the id of the connected device.
+        /// </returns>
+        /// <param name="index">The zero-based index of the device to poll.</param>
+        public static Guid GetGuid(int index)
         {
             return implementation.GetGuid(index);
         }