public static extern int XInputSetState ( int dwUserIndex, // [in] Index of the gamer associated with the device ref XInputVibration pVibration // [in, out] The vibration information to send to the controller );
public static extern int XInputSetState ( int dwUserIndex, ref XInputVibration pVibration );
public void Vibrate(XInputVibration strength) { _stopMotorTimerActive = false; XInput.XInputSetState(_playerIndex, ref strength); }