From 4980cd01dce3b74b761519001f95640685e37fab Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 8 May 2017 07:27:41 -0700 Subject: [PATCH] Fix issue with multi-action button not working Related to issue #26. --- DS4Windows/DS4Control/Mapping.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index 3b05969..a961882 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -1721,8 +1721,10 @@ namespace DS4Windows DS4Device d = ctrl.DS4Controllers[device]; //cus + DS4State tempPrevState = d.getPreviousState(); + DS4StateFieldMapping tempPrevMapping = new DS4StateFieldMapping(tempPrevState, eState, tp); bool activeCur = getBoolMapping2(device, action.trigger[0], cState, eState, tp, fieldMapping); - bool activePrev = getBoolMapping2(device, action.trigger[0], d.getPreviousState(), eState, tp, fieldMapping); + bool activePrev = getBoolMapping2(device, action.trigger[0], tempPrevState, eState, tp, tempPrevMapping); if (activeCur && !activePrev) { // pressed down