protected override unsafe void OnUpdateDirection() { base.OnUpdateDirection(); if (directInputEffect != null) { DirectInputForceFeedbackEffectUtils.UpdateEffectDirection(this, directInputEffect); } }
protected override unsafe bool OnCreateRealEffect() { base.OnCreateRealEffect(); DirectInputJoystickInputDevice device = (DirectInputJoystickInputDevice)Owner.Device; directInputEffect = DirectInputForceFeedbackEffectUtils.CreateEffect(device, EffectType, Axes); return(directInputEffect != null); }