summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-16 04:22:45 +0200
committerGitHub <noreply@github.com>2023-10-16 04:22:45 +0200
commit9e2ebb24df078dc16e1ebfa398b28bb70f206e75 (patch)
treeb9f060d5dab35a6269ebb952033e3af0a14612f7 /src
parentMerge pull request #11780 from Darkness4/master (diff)
parentinput_common: udp: Avoid crash when trying to map motion before client is ready (diff)
downloadyuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar.gz
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar.bz2
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar.lz
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar.xz
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.tar.zst
yuzu-9e2ebb24df078dc16e1ebfa398b28bb70f206e75.zip
Diffstat (limited to 'src')
-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 808b21069..77db60e92 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);
}
}