[C# wrapper] TriggerHapticPulse - type of argument unDurationMicroSec should be ushort not char.
When you try to call TriggerHapticPulse from .net code (full .net 4.6 x64 runtime, not mono) usDurationMicroSec parameter will not be interpreted correctly. After changing unDurationMicroSec type from 'char' to 'ushort' everything works as expected.
Here is a valid signature: internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, uint usDurationMicroSec);
Changing it from 'char' to 'ushort' does not fix it. However, changing it from 'char' to 'uint' does.
I also noticed that the vibration is still triggered when it is 'char' but it is almost undetectable. You have to literally put your ear up to the controller but you can hear the the faintest vibration when passing in char.MaxValue.
I have changed it to this: internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, ushort usDurationMicroSec); It works.
Please fix this! This shit made me build the Unreal Engine and compare the code...