diff --git a/Source/OpenTK/Input/KeyboardDevice.cs b/Source/OpenTK/Input/KeyboardDevice.cs index 4913dc41..cb64f178 100644 --- a/Source/OpenTK/Input/KeyboardDevice.cs +++ b/Source/OpenTK/Input/KeyboardDevice.cs @@ -196,12 +196,6 @@ namespace OpenTK.Input KeyUp(this, e); } - internal void ClearKeys() - { - for (Key i = 0; i < Key.LastKey; i++) - state[i] = false; - } - #if false internal void SetKey(Key key, uint scancode, KeyModifiers mods, bool pressed) { diff --git a/Source/OpenTK/Platform/LegacyInputDriver.cs b/Source/OpenTK/Platform/LegacyInputDriver.cs index 2378b91b..e2ee530d 100644 --- a/Source/OpenTK/Platform/LegacyInputDriver.cs +++ b/Source/OpenTK/Platform/LegacyInputDriver.cs @@ -69,14 +69,6 @@ namespace OpenTK.Platform // Hook keyboard events window.KeyDown += keyboard.HandleKeyDown; window.KeyUp += keyboard.HandleKeyUp; - - window.FocusedChanged += (sender, e) => - { - if (!window.Focused) - { - keyboard.ClearKeys(); - } - }; } #region IInputDriver Members