Function InputSingleton.startJoyVibration
Starts to vibrate the joypad. Joypads usually come with two rumble motors, a strong and a weak one. weak_magnitude
is the strength of the weak motor (between 0 and 1) and strong_magnitude
is the strength of the strong motor (between 0 and 1). duration
is the duration of the effect in seconds (a duration of 0 will try to play the vibration indefinitely).
Note: Not every hardware is compatible with long effect durations; it is recommended to restart an effect if it has to be played for more than a few seconds.
void startJoyVibration
(
const(long) device,
const(double) weak_magnitude,
const(double) strong_magnitude,
const(double) duration = 0.00000
) nothrow @nogc;