Skip to main content

HapticSink

Trait HapticSink 

Source
pub trait HapticSink {
    // Required method
    fn apply(&mut self, device: u64, strong: f32, weak: f32);
}
Expand description

Platform hook that receives resolved motor strengths for one device.

Required Methods§

Source

fn apply(&mut self, device: u64, strong: f32, weak: f32)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§