InputTouch C++ equivalent

There is a InputTouch Event in Blueprint. “Use Mouse for Touch” setting is enabled. This is working as intened. While LMB hold, Location value is changing.


I need to figure how to implemet this in C++.

For Cpp; found this:

But i couldnt understand how to implement “Moved”. Thx a lot in advance. I dont want to create Location1 and Location2 params and calculate offset in Tick function. I hope I was able to explain myself. Thanks again.


Found the implementation. It works for me.