[−][src]Function window::input::rumble
pub fn rumble(id: Option<usize>, power: f32)
Send rumble effect to a mobile device or gamepad(s).
If id is Some
then the gamepad with the ID specified will rumble. If id
is None
then all of the gamepads will rumble. The rumbling will continue
until you call this function again with power
set to 0.0
. Maximum
power
is 1.0
. Use None
for mobile devices. Make sure to use caution
when testing to ensure that no nearby fragile items might break from the
rumble effect.
Notes
power
will automatically be clamped between0.0
and1.0
.