diff options
author | gal20 <71563441+gal20@users.noreply.github.com> | 2020-12-27 21:22:48 +0100 |
---|---|---|
committer | gal20 <71563441+gal20@users.noreply.github.com> | 2020-12-27 21:22:48 +0100 |
commit | 1defd0847a70c2add4856be68ddf1aedc7a015de (patch) | |
tree | 7bc5006e6aadb9a65f2d5c0155e3b070adb8013f /src/input_common | |
parent | Merge pull request #5226 from ReinUsesLisp/c4715-vc (diff) | |
download | yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar.gz yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar.bz2 yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar.lz yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar.xz yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.tar.zst yuzu-1defd0847a70c2add4856be68ddf1aedc7a015de.zip |
Diffstat (limited to 'src/input_common')
-rw-r--r-- | src/input_common/udp/client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index 17a9225d7..412d57896 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp @@ -225,6 +225,11 @@ void Client::OnPortInfo([[maybe_unused]] Response::PortInfo data) { } void Client::OnPadData(Response::PadData data, std::size_t client) { + // Accept packets only for the correct pad + if (static_cast<u8>(clients[client].pad_index) != data.info.id) { + return; + } + LOG_TRACE(Input, "PadData packet received"); if (data.packet_counter == clients[client].packet_sequence) { LOG_WARNING( |