Merge pull request #645 from winterhell/develop

Prevent crash when XInput is not present
This commit is contained in:
varon 2017-09-03 01:19:27 +02:00 committed by GitHub
commit d9f8120f0d

View file

@ -381,7 +381,8 @@ namespace OpenTK.Platform.Windows
}
if (dll == IntPtr.Zero)
{
throw new NotSupportedException("XInput was not found on this platform");
Debug.Print("XInput was not found on this platform");
return;
}
// Load the entry points we are interested in from that dll