#[repr(C)]pub struct ovrTouchHapticsDesc {
pub _align: [isize; 0],
pub SampleRateHz: c_int,
pub SampleSizeInBytes: c_int,
pub QueueMinSizeToAvoidStarvation: c_int,
pub SubmitMinSamples: c_int,
pub SubmitMaxSamples: c_int,
pub SubmitOptimalSamples: c_int,
}Expand description
Describes the Touch Haptics engine. Currently, those values will NOT change during a session.
Fields§
§_align: [isize; 0]§SampleRateHz: c_intHaptics engine frequency/sample-rate, sample time in seconds equals 1.0/sampleRateHz
SampleSizeInBytes: c_intSize of each Haptics sample, sample value range is [0, 2^(Bytes*8)-1]
QueueMinSizeToAvoidStarvation: c_intQueue size that would guarantee Haptics engine would not starve for data Make sure size doesn’t drop below it for best results
SubmitMinSamples: c_intMinimum, Maximum and Optimal number of samples that can be sent to Haptics through ovr_SubmitControllerVibration
SubmitMaxSamples: c_int§SubmitOptimalSamples: c_intTrait Implementations§
Source§impl Clone for ovrTouchHapticsDesc
impl Clone for ovrTouchHapticsDesc
Source§fn clone(&self) -> ovrTouchHapticsDesc
fn clone(&self) -> ovrTouchHapticsDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ovrTouchHapticsDesc
impl Debug for ovrTouchHapticsDesc
impl Copy for ovrTouchHapticsDesc
Auto Trait Implementations§
impl Freeze for ovrTouchHapticsDesc
impl RefUnwindSafe for ovrTouchHapticsDesc
impl Send for ovrTouchHapticsDesc
impl Sync for ovrTouchHapticsDesc
impl Unpin for ovrTouchHapticsDesc
impl UnwindSafe for ovrTouchHapticsDesc
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