Fix XInput library linkage for compatibility down to Windows Vista

This commit is contained in:
Prcuvu
2019-12-31 16:04:17 +08:00
parent 3716e8ae56
commit 532c430d8f
@@ -14,7 +14,11 @@
#include "InputHandler_DirectInputHelper.h"
#ifdef NTDDI_WIN8 // Link to Xinput9_1_0.lib on Windows 8 SDK and above to ensure linkage to Xinput9_1_0.dll
#pragma comment(lib, "Xinput9_1_0.lib")
#else
#pragma comment(lib, "xinput.lib")
#endif
#include <XInput.h>
#include <WbemIdl.h>