aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/udp_client.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-15 22:22:45 -0400
committerGitHub <noreply@github.com>2023-10-15 22:22:45 -0400
commit9a00ac966cac41ca0f54bc11acb2368db34fe252 (patch)
treeb9f060d5dab35a6269ebb952033e3af0a14612f7 /src/input_common/drivers/udp_client.cpp
parent66bb83bf320c0e5905c92c3dcb4e577ca93ca9b1 (diff)
parent83c63997ff92345a97e0fe1921bff80ddfe55abc (diff)
Merge pull request #11794 from german77/linemot
input_common: udp: Avoid crash when trying to map motion before client is ready
Diffstat (limited to 'src/input_common/drivers/udp_client.cpp')
-rw-r--r--src/input_common/drivers/udp_client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp
index 808b21069f..77db60e929 100644
--- a/src/input_common/drivers/udp_client.cpp
+++ b/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);
}
}