added check id on joystick and change joystick factory