[skip ci] Fix hidapi gamepad ignoring

This commit is contained in:
Nintorch 2026-05-21 23:16:53 +05:00
parent 85fc76b089
commit b0823349bb

View file

@ -149,7 +149,7 @@ static void SDL_RequestWebHIDDevice(Uint16 vendor, Uint16 product, int device_in
while (true) {
try {
let devices = await navigator["hid"]["requestDevice"]({ "filters": [ { "vendorId": $0, "productId": $1, } ]});
if (devices) {
if (devices["length"]) {
dynCall("vi", $2, [$3]);
}
return;