This method of the DirectInput Class queries a joystick for its position and button status.
public void getPos(int joyid, JoyInfo info);
joyid | The joystick identifier. |
info | The JoyInfo object that contains extended position information and button status of the joystick. |