added joystick argumant.