update joystick values in loops