summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/touchscreen.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-21 19:41:34 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-02-22 02:48:38 +0100
commit9477181d09518a183c8241af620a1df4f0c839f8 (patch)
treeb98a3e9bafe0a934bc0c42296cb64012fec4a849 /src/core/hle/service/hid/controllers/touchscreen.cpp
parentMerge pull request #9847 from german77/timeout (diff)
downloadyuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar.gz
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar.bz2
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar.lz
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar.xz
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.tar.zst
yuzu-9477181d09518a183c8241af620a1df4f0c839f8.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/touchscreen.cpp')
-rw-r--r--src/core/hle/service/hid/controllers/touchscreen.cpp5
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;