Fixed Xbox 360 wireless controller being picked up by WGI when it's being managed by RAWINPUT

This commit is contained in:
Sam Lantinga
2020-11-27 10:44:47 -08:00
parent 37c9e4afa3
commit 8a449de20d
5 changed files with 13 additions and 6 deletions

View File

@@ -249,7 +249,7 @@ static HRESULT STDMETHODCALLTYPE IEventHandler_CRawGameControllerVtbl_InvokeAdde
#endif
#ifdef SDL_JOYSTICK_RAWINPUT
if (!ignore_joystick && RAWINPUT_IsDevicePresent(vendor, product, version)) {
if (!ignore_joystick && RAWINPUT_IsDevicePresent(vendor, product, version, name)) {
ignore_joystick = SDL_TRUE;
}
#endif