Added documentation for IsConnected and added (disabled) IsLedOn/IsLedOff methods.

This commit is contained in:
the_fiddler 2010-12-03 12:40:10 +00:00
parent 14d96ccfc9
commit 96cef32bfc

View file

@ -85,12 +85,29 @@ namespace OpenTK.Input
return !ReadBit((int)key); return !ReadBit((int)key);
} }
/// <summary>
/// Gets a <see cref="System.Boolean"/> indicating whether this keyboard
/// is connected.
/// </summary>
public bool IsConnected public bool IsConnected
{ {
get { return is_connected; } get { return is_connected; }
internal set { is_connected = value; } internal set { is_connected = value; }
} }
#if false
// Disabled until the correct cross-platform API can be determined.
public bool IsLedOn(KeyboardLeds led)
{
return false;
}
public bool IsLedOff(KeyboardLeds led)
{
return false;
}
#endif
/// <summary> /// <summary>
/// Checks whether two <see cref="KeyboardState" /> instances are equal. /// Checks whether two <see cref="KeyboardState" /> instances are equal.
/// </summary> /// </summary>