From 0c303a091a2f6d05337844eed2f27f690a3f98bb Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 11 Oct 2017 21:26:21 -0500 Subject: [PATCH] Correct touchpad toggle messages --- DS4Windows/DS4Control/ControlService.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index fd4b2f8..9ea0fdb 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -896,20 +896,16 @@ namespace DS4Windows oldscrollvalue[deviceID] = getScrollSensitivity(deviceID); getTouchSensitivity()[deviceID] = 0; getScrollSensitivity()[deviceID] = 0; - LogDebug(oldtouchvalue[deviceID] > 0 ? Properties.Resources.TouchpadMovementOn : - Properties.Resources.TouchpadMovementOff); - Log.LogToTray(oldtouchvalue[deviceID] > 0 ? Properties.Resources.TouchpadMovementOn : - Properties.Resources.TouchpadMovementOff); + LogDebug(Properties.Resources.TouchpadMovementOff); + Log.LogToTray(Properties.Resources.TouchpadMovementOff); touchreleased[deviceID] = false; } else if (touchreleased[deviceID]) { getTouchSensitivity()[deviceID] = oldtouchvalue[deviceID]; getScrollSensitivity()[deviceID] = oldscrollvalue[deviceID]; - LogDebug(oldtouchvalue[deviceID] > 0 ? Properties.Resources.TouchpadMovementOn : - Properties.Resources.TouchpadMovementOff); - Log.LogToTray(oldtouchvalue[deviceID] > 0 ? Properties.Resources.TouchpadMovementOn : - Properties.Resources.TouchpadMovementOff); + LogDebug(Properties.Resources.TouchpadMovementOn); + Log.LogToTray(Properties.Resources.TouchpadMovementOn); touchreleased[deviceID] = false; } }