Function tetra::input::start_gamepad_vibration[][src]

pub fn start_gamepad_vibration(
    ctx: &mut Context,
    gamepad_id: usize,
    strength: f32,
    duration: u32
)
Expand description

Sets the specified gamepad’s motors to vibrate for a set duration, specified in milliseconds. After this time has passed, the vibration will automatically stop.