From 6e1457e3bf146a1b8a8e8695607b063c8298b932 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 4 Jul 2022 14:37:22 -0700 Subject: [PATCH] UWP: Skip pad name lookup. --- Windows/XinputDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/XinputDevice.cpp b/Windows/XinputDevice.cpp index 5dd00c165c74..b9d73c8ecd22 100644 --- a/Windows/XinputDevice.cpp +++ b/Windows/XinputDevice.cpp @@ -205,10 +205,14 @@ void XinputDevice::UpdatePad(int pad, const XINPUT_STATE &state, XINPUT_VIBRATIO static bool notified[XUSER_MAX_COUNT]{}; if (!notified[pad]) { notified[pad] = true; +#if !PPSSPP_PLATFORM(UWP) XINPUT_CAPABILITIES_EX caps; if (PPSSPP_XInputGetCapabilitiesEx != nullptr && PPSSPP_XInputGetCapabilitiesEx(1, pad, 0, &caps) == ERROR_SUCCESS) { KeyMap::NotifyPadConnected(DEVICE_ID_XINPUT_0 + pad, StringFromFormat("Xbox 360 Pad: %d/%d", caps.vendorId, caps.productId)); } else { +#else + { +#endif KeyMap::NotifyPadConnected(DEVICE_ID_XINPUT_0 + pad, "Xbox 360 Pad"); } }