I extracted the control system from MazeCube. The system reacts to the accelerometer vector and calculates a joystick position from that. If the mobile is moved more then the max angle the joystick follows with its reference. So the user is able to have the zero position in different mobile positions.
To get this to work in Unity Editor you need to connect a mobile via unity remote.