vJoyInterfaceWrap.vJoy.FfbStart C# (CSharp) Method

FfbStart() private method

private FfbStart ( UInt32 rID ) : bool
rID System.UInt32
return bool
        public bool FfbStart(UInt32 rID) { return _FfbStart(rID); }
        [Obsolete("you can remove the function from your code")]

Usage Example

コード例 #1
0
ファイル: TesterForm.cs プロジェクト: shauleiz/vJoy
        public FfbInterface(TesterForm dialog)
        {
            dlg = dialog;
            joystick = dialog.joystick;
            // FFB
            #if false
            #pragma warning disable 0618
            if (!joystick.FfbStart(id))
                throw new Exception(String.Format("Failed to start Forcefeedback on device {0}", id));
            #pragma warning restore 0618

            // Convert Form to pointer and pass it as user data to the callback function
            GCHandle h = GCHandle.Alloc(dialog);
            IntPtr parameter = (IntPtr)h;
            // joystick.FfbRegisterGenCB(OnEffect, parameter);
            joystick.FfbRegisterGenCB(OnEffectObj, dialog);
             #endif
        }