Phone/Tablet control using gyro/acc

Was wondering if anyone has used mobile phone or tablets accelerometer and gyro to control the UAV?
Some of the cheaper quads I’ve seen allow this, just wondering if it’s possible to pass the movement as a joystick in MP or other GCS ?

There are applications available that allow you to use your phone as gamepad on the PC. That paired with this might work.