how to get enhanced Input InputActionValue In c++?

thank you,
But what I want is to know the value of InputActionValue in a function, not a bound function.

for example

Before Unreal 5.1