added joystick control