Skip to content

cf_joypad_rumble

Category: input
GitHub: cute_joypad.h


Rumbles the joypad.

void cf_joypad_rumble(int player_index, uint16_t lo_frequency_rumble, uint16_t hi_frequency_rumble, int duration_ms);
Parameters Description
player_index An index represeting the joypad for a particular player, starting at 0.
lo_frequency_rumble Rumble intensity from 0 to 65535. Represents the low frequency motor (or left motor).
hi_frequency_rumble Rumble intensity from 0 to 65535. Represents the high frequency motor (or right motor).

Remarks

Calling this function cancels any previous rumbles. Sending in 0 for either low/high frequency parameters cancels the rumble.

CF_Joypad
CF_JoypadButton
cf_joypad_button_down
cf_joypad_button_just_pressed
cf_joypad_button_just_released
cf_joypad_axis