From 58e58e888588613cb20fb488d755dc92c6d47a5d Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 4 Aug 2009 08:49:15 +0000 Subject: [PATCH] Implemented CreateKeyboardDriver (currently disabled). --- Source/OpenTK/Platform/Windows/WinFactory.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WinFactory.cs b/Source/OpenTK/Platform/Windows/WinFactory.cs index 8aaf9353..7766cfb8 100644 --- a/Source/OpenTK/Platform/Windows/WinFactory.cs +++ b/Source/OpenTK/Platform/Windows/WinFactory.cs @@ -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