You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/windows/SDL_xinput.c
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,11 +84,15 @@ WIN_LoadXInputDLL(void)
84
84
s_pXInputDLL=LoadLibrary(L"XInput1_4.dll"); /* 1.4 Ships with Windows 8. */
85
85
if (!s_pXInputDLL) {
86
86
version= (1 << 16) | 3;
87
-
s_pXInputDLL=LoadLibrary(L"XInput1_3.dll"); /* 1.3 Ships with Vista and Win7, can be installed as a redistributable component. */
87
+
s_pXInputDLL=LoadLibrary(L"XInput1_3.dll"); /* 1.3 can be installed as a redistributable component. */
88
88
}
89
89
if (!s_pXInputDLL) {
90
90
s_pXInputDLL=LoadLibrary(L"bin\\XInput1_3.dll");
91
91
}
92
+
if (!s_pXInputDLL) {
93
+
/* "9.1.0" Ships with Vista and Win7, and is more limited than 1.3+ (e.g. XInputGetStateEx is not available.) */
94
+
s_pXInputDLL=LoadLibrary(L"XInput9_1_0.dll");
95
+
}
92
96
if (!s_pXInputDLL) {
93
97
return-1;
94
98
}
@@ -99,6 +103,9 @@ WIN_LoadXInputDLL(void)
99
103
100
104
/* 100 is the ordinal for _XInputGetStateEx, which returns the same struct as XinputGetState, but with extra data in wButtons for the guide button, we think... */
0 commit comments