Implemented CreateKeyboardDriver (currently disabled).
This commit is contained in:
parent
ec24c5022f
commit
58e58e8885
1 changed files with 6 additions and 1 deletions
|
@ -73,7 +73,12 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue