示例#1
0
        protected override unsafe void OnUpdateDirection()
        {
            base.OnUpdateDirection();

            if (directInputEffect != null)
            {
                DirectInputForceFeedbackEffectUtils.UpdateEffectDirection(this, directInputEffect);
            }
        }
示例#2
0
        protected override unsafe bool OnCreateRealEffect()
        {
            base.OnCreateRealEffect();

            DirectInputJoystickInputDevice device = (DirectInputJoystickInputDevice)Owner.Device;

            directInputEffect = DirectInputForceFeedbackEffectUtils.CreateEffect(device, EffectType, Axes);
            return(directInputEffect != null);
        }