Implemented CreateKeyboardDriver (currently disabled).

This commit is contained in:
the_fiddler 2009-08-04 08:49:15 +00:00
parent 0445ba2e00
commit e9d34a62ce

View file

@ -73,7 +73,12 @@ namespace OpenTK.Platform.Windows
public virtual OpenTK.Input.IKeyboardDriver CreateKeyboardDriver() public virtual OpenTK.Input.IKeyboardDriver CreateKeyboardDriver()
{ {
throw new NotImplementedException(); 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 #endregion