joystick modified to return polar coords as well