mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-29 06:36:41 +00:00
Merge pull request #6264 from german77/touchsetting
hid: Disable touch if setting is not enabled
This commit is contained in:
commit
07934f0e87
|
@ -33,7 +33,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing, u
|
||||||
shared_memory.header.timestamp = core_timing.GetCPUTicks();
|
shared_memory.header.timestamp = core_timing.GetCPUTicks();
|
||||||
shared_memory.header.total_entry_count = 17;
|
shared_memory.header.total_entry_count = 17;
|
||||||
|
|
||||||
if (!IsControllerActivated()) {
|
if (!IsControllerActivated() || !Settings::values.touchscreen.enabled) {
|
||||||
shared_memory.header.entry_count = 0;
|
shared_memory.header.entry_count = 0;
|
||||||
shared_memory.header.last_entry_index = 0;
|
shared_memory.header.last_entry_index = 0;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -33,7 +33,7 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin
|
||||||
shared_memory.header.timestamp = core_timing.GetCPUTicks();
|
shared_memory.header.timestamp = core_timing.GetCPUTicks();
|
||||||
shared_memory.header.total_entry_count = 17;
|
shared_memory.header.total_entry_count = 17;
|
||||||
|
|
||||||
if (!IsControllerActivated()) {
|
if (!IsControllerActivated() || !Settings::values.touchscreen.enabled) {
|
||||||
shared_memory.header.entry_count = 0;
|
shared_memory.header.entry_count = 0;
|
||||||
shared_memory.header.last_entry_index = 0;
|
shared_memory.header.last_entry_index = 0;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue