From 96cef32bfce2de90126dc24ee285b135df4ad587 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 3 Dec 2010 12:40:10 +0000 Subject: [PATCH] Added documentation for IsConnected and added (disabled) IsLedOn/IsLedOff methods. --- Source/OpenTK/Input/KeyboardState.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Source/OpenTK/Input/KeyboardState.cs b/Source/OpenTK/Input/KeyboardState.cs index ee1ddfd7..d37c60da 100644 --- a/Source/OpenTK/Input/KeyboardState.cs +++ b/Source/OpenTK/Input/KeyboardState.cs @@ -85,12 +85,29 @@ namespace OpenTK.Input return !ReadBit((int)key); } + /// + /// Gets a indicating whether this keyboard + /// is connected. + /// public bool IsConnected { get { return is_connected; } 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 + /// /// Checks whether two instances are equal. ///