UEnhancedPlayerInput::GetActionValue

Retrieve the current value of an action for this player.

Choose your operating system:

Windows

macOS

Linux

References

Module

EnhancedInput

Header

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

Include

#include "EnhancedPlayerInput.h"

Source

/Engine/Plugins/Experimental/EnhancedInput/Source/EnhancedInput/Private/EnhancedPlayerInput.cpp

Syntax

FInputActionValue GetActionValue
(
    const UInputAction * ForAction
) const

Remarks

Retrieve the current value of an action for this player.

If the action is not currently triggering this will return a zero value of the appropriate value type, ignoring any ongoing inputs.