mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Correctly handle adding controllers if we fail to match them to the known pad_map.
This commit is contained in:
parent
0b1a265675
commit
f7c6574b37
@ -116,6 +116,14 @@ int32_t pad_connection_pad_init(joypad_connection_t *joyconn,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//We failed to find a matching pad, set up one without an iface
|
||||||
|
if (!s->connected)
|
||||||
|
{
|
||||||
|
s->iface = NULL;
|
||||||
|
s->data = data;
|
||||||
|
s->connected = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return pad;
|
return pad;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user