Changeing a physical joystick to a Blynk joystick

the code I pasted bellow is my code for a pan/tilt that is ran off of a physical joy stick. I have my Bluetooth code figured out and connected to my phone. I was wondering how I would change the physical joystick to a virtual joystick. Once that is figured out I will past it into the Bluetooth code.

void setup()
{
pinMode(5, OUTPUT); //we have to set PWM pin as output
pinMode(6, OUTPUT);

pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
Serial.begin(9600);
}

void loop()
{

int joyXIn = analogRead(0); //Read the joystick value
int joyYIn = analogRead(1); //Read the joystick value

int joyX = map(joyXIn, 0, 1023, -255, 255); //Map joystick imput so it will work the servo motor
int joyY = map(joyYIn, 0, 1023, -255, 255); //Map joystick imput so it will work the servo motor

if (joyX < 0)
{
digitalWrite(3, HIGH);
analogWrite(5, joyX * -1);

}

if (joyX < 0)
{
digitalWrite(4, LOW);
analogWrite(6, joyY * -1);

}

if (joyX > 0)
{
digitalWrite(3, LOW);
analogWrite(5, joyX);

}

if (joyY > 0)
{
digitalWrite(4, HIGH);
analogWrite(6, joyY);

}

}

Take a look at the example page http://examples.blynk.cc/ under Widgets/JoystickTwoAxis.