This method of the DirectInput Class queries a joystick to determine its capabilities.
public void getDevCaps(int joyid, JoyCaps pjc);