[Input] Do not hook FocusedChanged

This is handled by NativeWindowBase now.
This commit is contained in:
thefiddler 2014-05-09 15:23:39 +02:00
parent 8eae337d93
commit c98b4ea178
2 changed files with 0 additions and 14 deletions

View file

@ -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)
{

View file

@ -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