mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 14:35:40 +00:00
Implemented CreateKeyboardDriver (currently disabled).
This commit is contained in:
parent
0445ba2e00
commit
e9d34a62ce
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue