I want to get smartphone acceleration sensor values from C ++ in the Unreal Engine

I want to import the smartphone accelerometer value from C ++ to the Unreal Engine, but I do not know how to code it. I would like to use the remote control to move the actors I used when my smartphone was moving, but I do not know. Let me know how to use C ++ with acceleration sensors.

Unreal already has a Tilt event which contains Accelerometer vectors. Why not use that?

How to access it from c++?

Late back to the forum… I don’t know, but one thing I DO know is that you can actually open up a blueprint node into Visual Studio and inspect the C++ code that implements it. Not sure if you have to be using a Source Code version of Unreal Engine to do that or not. Probably.

So, get Unreal Engine source code from github (if you need to), make a new project after launching the built source code engine (you build it) from Visual Studio, add a Tilt event handler node to a blueprint, then open the node in Visual Studio and trace the code to see how it works.

Let me know how it goes. I haven’t tried this myself, it’s just a suggestion of how I would figure it out.