pub struct Haptic { /* private fields */ }
Expand description
Wrapper around the SDL_Haptic
object
Implementations
sourceimpl Haptic
impl Haptic
pub fn subsystem(&self) -> &HapticSubsystem
sourcepub fn rumble_play(&mut self, strength: f32, duration: u32)
pub fn rumble_play(&mut self, strength: f32, duration: u32)
Run a simple rumble effect on the haptic device.
sourcepub fn rumble_stop(&mut self)
pub fn rumble_stop(&mut self)
Stop the simple rumble on the haptic device.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Haptic
impl !Send for Haptic
impl !Sync for Haptic
impl Unpin for Haptic
impl UnwindSafe for Haptic
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more