diff options
| author | german77 <juangerman-13@hotmail.com> | 2021-04-30 19:28:21 -0500 |
|---|---|---|
| committer | german77 <juangerman-13@hotmail.com> | 2021-04-30 19:28:21 -0500 |
| commit | e367b3a55738b08ea1c0ff8281f5478b75bc8179 (patch) | |
| tree | 9963ce7170bd843b1997fa6fb0730dce8f7e1d2a /src/core/hle/service/hid/controllers/touchscreen.cpp | |
| parent | 305bb0cf42a516fd24956c8109323eacdd26a914 (diff) | |
Disable touch if setting is not enabled
Diffstat (limited to 'src/core/hle/service/hid/controllers/touchscreen.cpp')
| -rw-r--r-- | src/core/hle/service/hid/controllers/touchscreen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/core/hle/service/hid/controllers/touchscreen.cpp index b5f8077be7..8f56a02551 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.cpp +++ b/src/core/hle/service/hid/controllers/touchscreen.cpp @@ -33,7 +33,7 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin shared_memory.header.timestamp = core_timing.GetCPUTicks(); shared_memory.header.total_entry_count = 17; - if (!IsControllerActivated()) { + if (!IsControllerActivated() || !Settings::values.touchscreen.enabled) { shared_memory.header.entry_count = 0; shared_memory.header.last_entry_index = 0; return; |
