Fixed detecting Bluetooth XInput controllers on Windows
This commit is contained in:
1 parent
8b29aaddbd
commit
8e312a6a59
1 file changed
+1
-1
@@ -419,7 +419,7 @@ SDL_IsXInputDevice(const WCHAR *name, const GUID* pGuidProductFromDirectInput)
|
|||||||
|
|
||||||
for (i = 0; i < SDL_RawDevListCount; i++) {
|
for (i = 0; i < SDL_RawDevListCount; i++) {
|
||||||
RID_DEVICE_INFO rdi;
|
RID_DEVICE_INFO rdi;
|
||||||
char devName[128];
|
char devName[MAX_PATH];
|
||||||
UINT rdiSize = sizeof(rdi);
|
UINT rdiSize = sizeof(rdi);
|
||||||
UINT nameSize = SDL_arraysize(devName);
|
UINT nameSize = SDL_arraysize(devName);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user