mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-18 02:40:11 +00:00
Merge pull request #14736 from tom-pratt/wii-controller-netplay
Auto assign wii controllers in netplay
This commit is contained in:
@@ -2273,6 +2273,15 @@ void NetPlayServer::AssignNewUserAPad(const Client& player)
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (PlayerId& mapping : m_wiimote_map)
|
||||
{
|
||||
// 0 means unmapped
|
||||
if (mapping == 0)
|
||||
{
|
||||
mapping = player.pid;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PlayerId NetPlayServer::GiveFirstAvailableIDTo(ENetPeer* player)
|
||||
|
||||
Reference in New Issue
Block a user