Browse Source

Merge pull request #11794 from german77/linemot

input_common: udp: Avoid crash when trying to map motion before client is ready
nce_cpp
liamwhite 2 years ago
committed by GitHub
parent
commit
9a00ac966c
  1. 1
      src/input_common/drivers/udp_client.cpp

1
src/input_common/drivers/udp_client.cpp

@ -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) {
const PadIdentifier identifier = GetPadIdentifier(client * PADS_PER_CLIENT + index);
PreSetController(identifier);
PreSetMotion(identifier, 0);
}
}

Loading…
Cancel
Save