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