Have you heard about this upcoming iPhone app?
CameraMan will allow you to use iPhone4 built-in gyroscope to capture motion and apply it to a camera in Autodesk Maya. Check out the demo, it looks promising.
I wonder if you can record the motion without connecting it to Autodesk Maya and perhaps save the data to a text file that could then be imported into some other application besides Maya.
It has already been submitted to Apple and the creator Wes McDermott has mentioned that he is just waiting for approval.
More information can be found here.