mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-24 11:25:50 -05:00
Auto assign wii controllers in netplay
Just copy the gamecube logic and automatically assign players to the first empty slot. More consistent with GameCube and helps Android hosts where there is no UI for managing controller mappings currently.
This commit is contained in:
@@ -2272,6 +2272,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