From 83e1578ed33ed1a3e7d8bfb272377e8b62d363ab Mon Sep 17 00:00:00 2001 From: medcelerate Date: Sun, 1 Dec 2024 19:07:37 -0500 Subject: [PATCH] Added fix for pulse being a button --- FFGLTouchEngine/src/TouchEngine.cpp | 2 +- FFGLTouchEngine/src/TouchEngine.h | 2 +- FFGLTouchEngineFX/src/TouchEngineFX.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FFGLTouchEngine/src/TouchEngine.cpp b/FFGLTouchEngine/src/TouchEngine.cpp index 38de3a1..6abfe4d 100644 --- a/FFGLTouchEngine/src/TouchEngine.cpp +++ b/FFGLTouchEngine/src/TouchEngine.cpp @@ -1050,7 +1050,7 @@ void FFGLTouchEngine::CreateIndividualParameter(const TouchObject& l case TELinkTypeBoolean: { - if (linkInfo->intent == TELinkIntentMomentary) { + if (linkInfo->intent == TELinkIntentMomentary || linkInfo->intent == TELinkIntentPulse) { uint32_t ParamID = (ParameterMapBool.size() + OffsetParamsByType) + (MaxParamsByType * 4); Parameters.push_back(std::make_pair(linkInfo->identifier, ParamID)); ActiveParams.insert(ParamID); diff --git a/FFGLTouchEngine/src/TouchEngine.h b/FFGLTouchEngine/src/TouchEngine.h index b9784ef..20c1209 100644 --- a/FFGLTouchEngine/src/TouchEngine.h +++ b/FFGLTouchEngine/src/TouchEngine.h @@ -114,7 +114,7 @@ class FFGLTouchEngine : public CFFGLPlugin void LoadTouchEngine(); void ResumeTouchEngine(); void GetAllParameters(); - void CreateIndividualParameter( const TouchObject& linkInfo); + void CreateIndividualParameter(const TouchObject& linkInfo); void CreateParametersFromGroup(const TouchObject& linkInfo); void ClearTouchInstance(); void eventCallback(TEEvent event, TEResult result, int64_t start_time_value, int32_t start_time_scale, int64_t end_time_value, int32_t end_time_scale); diff --git a/FFGLTouchEngineFX/src/TouchEngineFX.cpp b/FFGLTouchEngineFX/src/TouchEngineFX.cpp index edeb484..751fc5e 100644 --- a/FFGLTouchEngineFX/src/TouchEngineFX.cpp +++ b/FFGLTouchEngineFX/src/TouchEngineFX.cpp @@ -1305,7 +1305,7 @@ void FFGLTouchEngineFX::CreateIndividualParameter(const TouchObject& case TELinkTypeBoolean: { - if (linkInfo->intent == TELinkIntentMomentary) { + if (linkInfo->intent == TELinkIntentMomentary || linkInfo->intent == TELinkIntentPulse) { uint32_t ParamID = (ParameterMapBool.size() + OffsetParamsByType) + (MaxParamsByType * 4); Parameters.push_back(std::make_pair(linkInfo->identifier, ParamID)); ActiveParams.insert(ParamID);