From 1ac7b79a10adbc04472f204a1ec73c44b098a3dc Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 7 Jan 2018 21:56:28 -0600 Subject: [PATCH] Fix problem with rapid touchpad mouse action clicks Related to issue #185. --- DS4Windows/DS4Control/Mouse.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DS4Windows/DS4Control/Mouse.cs b/DS4Windows/DS4Control/Mouse.cs index e17081b..369ef8d 100644 --- a/DS4Windows/DS4Control/Mouse.cs +++ b/DS4Windows/DS4Control/Mouse.cs @@ -405,10 +405,11 @@ namespace DS4Windows } } } - //synthesizeMouseButtons(); + + if (s.TouchButton) + synthesizeMouseButtons(); } - private DS4State remapped = new DS4State(); public bool dragging, dragging2; private void synthesizeMouseButtons() { @@ -453,8 +454,6 @@ namespace DS4Windows dragging = false; } } - - s = remapped; } public virtual void touchButtonUp(object sender, TouchpadEventArgs arg)