示例#1
0
 /// <summary>
 /// Retrieves the <see cref="JoystickState"/> of the device connected
 /// at the specified index.
 /// </summary>
 /// <returns>A <see cref="JoystickState"/> structure describing
 /// the current state of the device at the specified index.
 /// If no device is connected at this index, the <c>IsConnected</c>
 /// property of the returned structure will be false.
 /// </returns>
 /// <param name="index">The zero-based index of the device to poll.</param>
 public static JoystickState GetState(int index)
 {
     return(implementation.GetState(index));
 }