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