yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #11794 from german77/linemot

input_common: udp: Avoid crash when trying to map motion before client is ready
This commit is contained in:
liamwhite 2023-10-15 22:22:45 -04:00 committed by GitHub
commit 9e2ebb24df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -338,6 +338,7 @@ void UDPClient::StartCommunication(std::size_t client, const std::string& host,
for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) { for (std::size_t index = 0; index < PADS_PER_CLIENT; ++index) {
const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index); const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index);
PreSetController(identifier); PreSetController(identifier);
PreSetMotion(identifier, 0);
} }
} }