I tried your script and the behavior I get is that moving the joystick forward/backward will move the viewpoint forward/backward. Moving the joystick left/right will move the viewpoint left/right. Turning the joystick will also turn the viewpoint. Is this not what you want? I don't understand what the problem is.
|