As an input device,joystick is usually used for playing computer games.In the field of scientific research,joystick can be used as a human-computer interface.Generally speaking,a joystick has three DoFs(Degree of Freedom),so it can be used to manipulate the movement of the object in a 3D space.If the control of a joystick is realized,the movement of the object will also be controlled.In this paper,two methods will be introduced to realize the control of joysticks.