diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-23 04:08:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 04:08:35 +0100 |
commit | ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c (patch) | |
tree | ac8c6c62c2f43c41e887b269520c6d2482cf95a2 /src/core/hle/service/hid/controllers/touchscreen.cpp | |
parent | Merge pull request #9847 from german77/timeout (diff) | |
parent | settings: Add more input settings to the log (diff) | |
download | yuzu-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 'src/core/hle/service/hid/controllers/touchscreen.cpp')
-rw-r--r-- | src/core/hle/service/hid/controllers/touchscreen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/core/hle/service/hid/controllers/touchscreen.cpp index 1da8d3eb0..d90a4e732 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.cpp +++ b/src/core/hle/service/hid/controllers/touchscreen.cpp @@ -58,6 +58,11 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin } if (!finger.pressed && current_touch.pressed) { + // Ignore all touch fingers if disabled + if (!Settings::values.touchscreen.enabled) { + continue; + } + finger.attribute.start_touch.Assign(1); finger.pressed = true; finger.position = current_touch.position; |