Implemented CreateKeyboardDriver (currently disabled).

This commit is contained in:
the_fiddler 2009-08-04 08:49:15 +00:00
parent ec24c5022f
commit 58e58e8885

View file

@ -74,6 +74,11 @@ namespace OpenTK.Platform.Windows
public virtual OpenTK.Input.IKeyboardDriver CreateKeyboardDriver()
{
throw new NotImplementedException();
// If Windows version is NT5 or higher, we are able to use raw input.
if (System.Environment.OSVersion.Version.Major >= 5)
return new WinRawKeyboard();
else
return new WMInput(null);
}
#endregion