Stepper Motor Angle and Speed Control

To move to the reference point you must call stepper1.write(0);.
But it's not as easy in this case, because your joystick is always controling the stepper and thus interferes with the write command.
Now you need the mode concept, where you can determine which device is controling the stepper.