pub struct Haptic { /* private fields */ }
Expand description
Wrapper around the SDL_Haptic
object
Implementations§
source§impl 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 Freeze for Haptic
impl RefUnwindSafe for Haptic
impl !Send for Haptic
impl !Sync for Haptic
impl Unpin for Haptic
impl UnwindSafe for Haptic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more