summaryrefslogtreecommitdiff
path: root/src/input_common/drivers
diff options
context:
space:
mode:
authorGravatar german772021-10-21 13:56:52 -0500
committerGravatar Narr the Reg2021-11-24 20:30:25 -0600
commitb5e72de753ae4de5c5fae7087abb00dc4242451d (patch)
treeac1f2b56814bbaaa1a5432c4e1d79c12dd16296d /src/input_common/drivers
parentservice/hid: Use ring buffer for gestures (diff)
downloadyuzu-b5e72de753ae4de5c5fae7087abb00dc4242451d.tar.gz
yuzu-b5e72de753ae4de5c5fae7087abb00dc4242451d.tar.xz
yuzu-b5e72de753ae4de5c5fae7087abb00dc4242451d.zip
kraken: Address comments from review
review fixes
Diffstat (limited to 'src/input_common/drivers')
-rw-r--r--src/input_common/drivers/udp_client.cpp2
-rw-r--r--src/input_common/drivers/udp_client.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/input_common/drivers/udp_client.cpp b/src/input_common/drivers/udp_client.cpp
index f0c0a6b8b..192ab336b 100644
--- a/src/input_common/drivers/udp_client.cpp
+++ b/src/input_common/drivers/udp_client.cpp
@@ -268,6 +268,8 @@ void UDPClient::OnPadData(Response::PadData data, std::size_t client) {
268 SetButton(identifier, touch_id, true); 268 SetButton(identifier, touch_id, true);
269 continue; 269 continue;
270 } 270 }
271 SetAxis(identifier, touch_id * 2, 0);
272 SetAxis(identifier, touch_id * 2 + 1, 0);
271 SetButton(identifier, touch_id, false); 273 SetButton(identifier, touch_id, false);
272 } 274 }
273} 275}
diff --git a/src/input_common/drivers/udp_client.h b/src/input_common/drivers/udp_client.h
index 58b2e921d..639325b17 100644
--- a/src/input_common/drivers/udp_client.h
+++ b/src/input_common/drivers/udp_client.h
@@ -1,6 +1,6 @@
1// Copyright 2021 yuzu Emulator Project 1// Copyright 2018 Citra Emulator Project
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included 3// Refer to the license.txt file included.
4 4
5#pragma once 5#pragma once
6 6