fixed joystick input bugs