mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-06 11:10:37 +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 (inputDriver == null)
|
||||||
{
|
{
|
||||||
// If Windows version is NT5 or higher, we are able to use raw input.
|
// 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();
|
inputDriver = new WinRawInput();
|
||||||
else
|
else
|
||||||
inputDriver = new WMInput(null);
|
inputDriver = new WMInput();
|
||||||
}
|
}
|
||||||
return inputDriver;
|
return inputDriver;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue