FTriggerStateTracker

Calculate a collective representation of trigger state from evaluations of all triggers in one or more trigger groups.

Choose your operating system:

Windows

macOS

Linux

References

Module

EnhancedInput

Header

/Engine/Plugins/Experimental/EnhancedInput/Source/EnhancedInput/Public/InputAction.h

Include

#include "InputAction.h"

Syntax

struct FTriggerStateTracker

Remarks

Calculate a collective representation of trigger state from evaluations of all triggers in one or more trigger groups.

Functions

Name Description

Public function

ETriggerStat...

 

EvaluateTriggers

(
    const UEnhancedPlayerInput* Pl...,
    const TArray< UInputTrigger* >...,
    FInputActionValue ModifiedValue,
    float DeltaTime
)

Add a group of triggers to the evaluated state, returning the new trigger state.

Public function Const

bool

 

GetMappingTriggerApplied()

Public function Const

ETriggerStat...

 

GetState()

Public function

void

 

SetMappingTriggerApplied

(
    bool bNewVal
)

Public function

void

 

SetStateForNoTriggers

(
    ETriggerState State
)

TODO: Hacky. This is the state we should return if we have evaluated no valid triggers. Set during action evaluation based on final ModifiedValue.

Operators

Name Description

Public function Const

bool

 

operator>=

(
    const FTriggerStateTracker& Other
)