编写并测试joystick