Struct sdl2::haptic::Haptic
[−]
[src]
pub struct Haptic { /* fields omitted */ }
Wrapper around the SDL_Haptic object
Methods
impl Haptic
[src]
fn subsystem(&self) -> &HapticSubsystem
fn rumble_play(&mut self, strength: f32, duration: u32)
Run a simple rumble effect on the haptic device.
fn rumble_stop(&mut self)
Stop the simple rumble on the haptic device.