Making a joystick control for two servos to hold position

pocukrani:
Now i neeed help to switch between those two codes.

That does not tell me exactly what you want help with. For example is there some functionality missing from my version?

If this was my project I would simply replace your version of the joystick code with my version and go on from there.

...R