From a85d1a50ab34e87af96342f758b6a91df10dabe6 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 2 Apr 2017 00:17:48 -0700 Subject: [PATCH] Change clause to use typeID instead of name string --- DS4Windows/DS4Control/Mapping.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 526220c..85a3725 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -1218,7 +1218,7 @@ namespace DS4Windows //a quick tap to use and hold to use the regular custom button/key bool triggerToBeTapped = action.typeID == SpecialAction.ActionTypeId.None && action.trigger.Count == 1 && GetDS4Action(device, action.trigger[0], false) == null; - if (!(action.name == "null" || index < 0)) + if (!(action.typeID == SpecialAction.ActionTypeId.None || index < 0)) { bool triggeractivated = true; if (action.delayTime > 0.0)