I am using a simple code to read input from a DirectInput device. I would like to add force feedback to the device, however when I run this test, I cannot find any ForceFeedbackActuator, however my device supports rumble effects.
public void Test(Joystick joystick) { joystick.SetCooperativeLevel(new WindowInteropHelper(Application.Current.MainWindow).Handle, CooperativeLevel.Background | CooperativeLevel.Exclusive); joystick.Properties.AxisMode = DeviceAxisMode.Absolute; joystick.Properties.AutoCenter = false; joystick.Acquire(); foreach (var deviceObjectInstance in joystick.GetObjects()) { if (deviceObjectInstance.ObjectId.Flags.HasFlag(DeviceObjectTypeFlags.ForceFeedbackActuator)) { } } } I checked the Microsoft specification but found nothing so far.
However my driver is null as well:
deviceInstance.ForceFeedbackDriverGuid But this can be set from registry HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM adding a new CLSID value for the current device.
Any help is appreciated.