I know you can already record with Handy control.
I tried in the past with the phone accelerometers trought Bluetooth but it wasn’t precise enough.
maybe with a dedicaded arduino/rpi and a inertial unit that could work better.
https://discuss.eroscripts.com/t/sensors-to-control-handy-nobra-with-movements/25940