Skip to content

Commit cd67aca

Browse files
UWP: Skip pad name lookup.
1 parent 3ea97b8 commit cd67aca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Windows/XinputDevice.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,14 @@ void XinputDevice::UpdatePad(int pad, const XINPUT_STATE &state, XINPUT_VIBRATIO
205205
static bool notified[XUSER_MAX_COUNT]{};
206206
if (!notified[pad]) {
207207
notified[pad] = true;
208+
#if !PPSSPP_PLATFORM(UWP)
208209
XINPUT_CAPABILITIES_EX caps;
209210
if (PPSSPP_XInputGetCapabilitiesEx != nullptr && PPSSPP_XInputGetCapabilitiesEx(1, pad, 0, &caps) == ERROR_SUCCESS) {
210211
KeyMap::NotifyPadConnected(DEVICE_ID_XINPUT_0 + pad, StringFromFormat("Xbox 360 Pad: %d/%d", caps.vendorId, caps.productId));
211212
} else {
213+
#else
214+
{
215+
#endif
212216
KeyMap::NotifyPadConnected(DEVICE_ID_XINPUT_0 + pad, "Xbox 360 Pad");
213217
}
214218
}

0 commit comments

Comments
 (0)