added commands to change mode on variable amount of joysticks