We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9406d3 commit 6d2baabCopy full SHA for 6d2baab
2 files changed
Source/ui_qt/CMakeLists.txt
@@ -195,7 +195,7 @@ if(TARGET_PLATFORM_WIN32)
195
)
196
197
list(APPEND UI_QT_PROJECT_LIBS dinput8)
198
- list(APPEND UI_QT_PROJECT_LIBS xinput)
+ list(APPEND UI_QT_PROJECT_LIBS xinput9_1_0)
199
endif()
200
201
if(DEBUGGER_INCLUDED)
Source/ui_qt/win32/InputProviderXinput.h
@@ -3,7 +3,13 @@
3
#include "input/InputProvider.h"
4
#include <thread>
5
#include <Windows.h>
6
+
7
+#pragma push_macro("_WIN32_WINNT")
8
+// We only want definitions from XInput 9.1.0
9
+#undef _WIN32_WINNT
10
+#define _WIN32_WINNT _WIN32_WINNT_WIN7
11
#include <Xinput.h>
12
+#pragma pop_macro("_WIN32_WINNT")
13
14
class CInputProviderXInput : public CInputProvider
15
{
0 commit comments