mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
fix: disable dinput8 to fix startup delay
Some HID devices block DirectInput8 device enumeration for many seconds which adversely affects software that uses GLFW without needing joysticks at all. This change skips loading of the `dinput8` library and thus disables all functionality that checks for its availability.
This commit is contained in:
parent
7b6aead9fb
commit
a6dd071b7c
@ -104,7 +104,6 @@ static GLFWbool loadLibraries(void)
|
||||
_glfw.win32.user32.GetSystemMetricsForDpi_ = (PFN_GetSystemMetricsForDpi)
|
||||
_glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "GetSystemMetricsForDpi");
|
||||
|
||||
_glfw.win32.dinput8.instance = _glfwPlatformLoadModule("dinput8.dll");
|
||||
if (_glfw.win32.dinput8.instance)
|
||||
{
|
||||
_glfw.win32.dinput8.Create = (PFN_DirectInput8Create)
|
||||
|
Loading…
Reference in New Issue
Block a user