From 5e6dc361a21e385162d6c33a967bc9c9bb997abd Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 27 Jan 2020 11:04:24 -0600 Subject: [PATCH] Apply trigger max zone when dead zone is 0.0 Related to issue #1075 --- DS4Windows/DS4Control/Mapping.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 7c9ca0f..6cf6526 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -837,6 +837,11 @@ namespace DS4Windows tempL2Output = 0.0; } } + else + { + double current = Global.Clamp(0, dState.L2, maxValue); + tempL2Output = current / maxValue; + } if (l2MaxOutput != 100.0) { @@ -887,6 +892,11 @@ namespace DS4Windows tempR2Output = 0.0; } } + else + { + double current = Global.Clamp(0, dState.R2, maxValue); + tempR2Output = current / maxValue; + } if (r2MaxOutput != 100.0) {