Download

C++ version of blueprint block

Hi, I am trying to access this function in my cpp code and can’t figure out how to do it. I need the coordinates of the touch on the screen for the game that I am making.

Any help is much appreciated

Thanks

This looks like it is from APlayerController. So anywhere in your custom playercontroller class




    float LocX, LocY;
    bool bIsCurrentlyPressed;
    GetInputTouchState(ETouchIndex::Touch1, LocX, LocY, bIsCurrentlyPressed);