mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-24 03:19:17 -05: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