summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/gesture.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-23 04:08:35 +0100
committerGitHub <noreply@github.com>2023-02-23 04:08:35 +0100
commitca8a804a3c28f53bba9d1f9080ae15c13f60ce9c (patch)
treeac8c6c62c2f43c41e887b269520c6d2482cf95a2 /src/core/hle/service/hid/controllers/gesture.cpp
parentMerge pull request #9847 from german77/timeout (diff)
parentsettings: Add more input settings to the log (diff)
downloadyuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar.gz
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar.bz2
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar.lz
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar.xz
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.tar.zst
yuzu-ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/gesture.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cpp
index 32e0708ba..de0090cc5 100644
--- a/src/core/hle/service/hid/controllers/gesture.cpp
+++ b/src/core/hle/service/hid/controllers/gesture.cpp
@@ -65,6 +65,11 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) {
}
void Controller_Gesture::ReadTouchInput() {
+ if (!Settings::values.touchscreen.enabled) {
+ fingers = {};
+ return;
+ }
+
const auto touch_status = console->GetTouch();
for (std::size_t id = 0; id < fingers.size(); ++id) {
fingers[id] = touch_status[id];