Add the class to control the joystick and its test case.