I have a question about a blueprint action that I would like to add to my project, if anyone knows how to do it: how can I trigger a fire action based on a raw sensor data and motion state input from the Oculus Touch controller? My goal is to use the recoil of an airsoft rifle to trigger the fire action through the touch accelerometer. The airsoft rifle is equipped with a special recoil system that I built myself with an electric actuator. It is quite strong, the equivalent of a .556 (M16) cal. So far I have the Touch mounted onto the top picatinny rail of my rifle and the motion translation is quite good in Unreal. I guessed that if we add a linear acceleration data listener with a specific value we would be able to capture the recoil motion and have it translated as a trigger action. I’m currently using a USB mouse cable that is connected to the rifle trigger to get the fire input. But that is a bit cumbersome and unclean. I would like to get rid of that mouse cable and be completely wireless but I have no idea how to program the blueprint in order to capture that motion acceleration and convert into an action. I attached a snapshot of the TouchController blueprint in which the new action has to be implemented.
Thanks in advance to anyone who would have a solution.