joystick code ported in but disabled