How to implement this function in c++, it returns the current forward input value

How to implement this function in c++, it returns the current forward input value

If you are looking to get the input action values via C++, here is the documentation on how to do so:
I hope the above documentation works for you!