How to use OnInputTouchBegin in PlayerController?

I found a ton of example of how to use the OnInputTouchBegin through blueprints but not a single one in programming.
I have created my custom playercontroller class and set bEnableTouchEvents to true. But then what is the function signature of the function that is called when OnInputTouchBegin happens?

Do I need to add a delegate? I tried using that, but OnInputTouchBegin has no AddDynamic functions to it.

Any help?