diff --git a/Source/OpenTK/Input/KeyboardDevice.cs b/Source/OpenTK/Input/KeyboardDevice.cs
index ec52a16c..ac33361e 100644
--- a/Source/OpenTK/Input/KeyboardDevice.cs
+++ b/Source/OpenTK/Input/KeyboardDevice.cs
@@ -29,9 +29,7 @@ namespace OpenTK.Input
#region --- Constructors ---
- public KeyboardDevice()
- {
- }
+ internal KeyboardDevice() { }
#endregion
@@ -125,11 +123,17 @@ namespace OpenTK.Input
#endregion
+ #region public event KeyDownEvent KeyDown;
+
///
/// Occurs when a key is pressed.
///
public event KeyDownEvent KeyDown;
+ #endregion
+
+ #region public event KeyUpEvent KeyUp;
+
///
/// Occurs when a key is released.
///
@@ -137,6 +141,8 @@ namespace OpenTK.Input
#endregion
+ #endregion
+
#region --- IInputDevice Members ---
public string Description
@@ -154,12 +160,18 @@ namespace OpenTK.Input
#region --- Public Methods ---
+ /// Returns the hash code for this KeyboardDevice.
+ /// A 32-bit signed integer hash code.
public override int GetHashCode()
{
//return base.GetHashCode();
return (int)(numKeys ^ numFKeys ^ numLeds ^ devID.GetHashCode() ^ description.GetHashCode());
}
+ ///
+ /// Returns a System.String representing this KeyboardDevice.
+ ///
+ /// A System.String representing this KeyboardDevice.
public override string ToString()
{
//return base.ToString();
@@ -168,6 +180,20 @@ namespace OpenTK.Input
}
#endregion
+
+ #region --- Internal Methods ---
+
+ #region internal void ClearKeys()
+
+ internal void ClearKeys()
+ {
+ for (int i = 0; i < (int)Key.MaxKeys; i++)
+ this[(Key)i] = false;
+ }
+
+ #endregion
+
+ #endregion
}
public delegate void KeyDownEvent(KeyboardDevice sender, Key key);
@@ -277,7 +303,7 @@ namespace OpenTK.Input
KeypadSubtract,
KeypadAdd,
KeypadDecimal,
- //KeypadEnter,
+ KeypadEnter,
// Letters
A, B, C, D, E, F, G,