Skip to content

Commit

Permalink
Added fix for pulse being a button
Browse files Browse the repository at this point in the history
  • Loading branch information
medcelerate committed Dec 2, 2024
1 parent 51794d5 commit 83e1578
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FFGLTouchEngine/src/TouchEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ void FFGLTouchEngine::CreateIndividualParameter(const TouchObject<TELinkInfo>& 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);
Expand Down
2 changes: 1 addition & 1 deletion FFGLTouchEngine/src/TouchEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class FFGLTouchEngine : public CFFGLPlugin
void LoadTouchEngine();
void ResumeTouchEngine();
void GetAllParameters();
void CreateIndividualParameter( const TouchObject<TELinkInfo>& linkInfo);
void CreateIndividualParameter(const TouchObject<TELinkInfo>& linkInfo);
void CreateParametersFromGroup(const TouchObject<TELinkInfo>& 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);
Expand Down
2 changes: 1 addition & 1 deletion FFGLTouchEngineFX/src/TouchEngineFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ void FFGLTouchEngineFX::CreateIndividualParameter(const TouchObject<TELinkInfo>&
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);
Expand Down

0 comments on commit 83e1578

Please sign in to comment.