Skip to content

cf_haptic_rumble_play

Category: haptic
GitHub: cute_haptics.h


Starts playing a simple rumble effect

void cf_haptic_rumble_play(CF_Haptic haptic, float strength, int duration_milliseconds);
Parameters Description
haptic The haptic.
strength Must be from 0.0f to 1.0f. How strong the rumble is.
duration_milliseconds The duration of the rumble in milliseconds.

Remarks

Successive calls on this function will update the underlying rumble effect, instead of creating and playing multiple different effect instances.

CF_Haptic
cf_haptic_open
cf_haptic_rumble_supported
cf_haptic_rumble_stop