mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 20:31:17 +00:00
WinRawInput requires Windows 5.1 (XP) or higher.
This commit is contained in:
parent
045d3d73f6
commit
1bacea0779
|
@ -95,10 +95,12 @@ namespace OpenTK.Platform.Windows
|
|||
if (inputDriver == null)
|
||||
{
|
||||
// If Windows version is NT5 or higher, we are able to use raw input.
|
||||
if (System.Environment.OSVersion.Version.Major >= 5)
|
||||
if (System.Environment.OSVersion.Version.Major > 5 ||
|
||||
(System.Environment.OSVersion.Version.Major == 5 &&
|
||||
System.Environment.OSVersion.Version.Minor > 0))
|
||||
inputDriver = new WinRawInput();
|
||||
else
|
||||
inputDriver = new WMInput(null);
|
||||
inputDriver = new WMInput();
|
||||
}
|
||||
return inputDriver;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue