#[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_int

Haptics engine frequency/sample-rate, sample time in seconds equals 1.0/sampleRateHz

§SampleSizeInBytes: c_int

Size of each Haptics sample, sample value range is [0, 2^(Bytes*8)-1]

§QueueMinSizeToAvoidStarvation: c_int

Queue size that would guarantee Haptics engine would not starve for data Make sure size doesn’t drop below it for best results

§SubmitMinSamples: c_int

Minimum, Maximum and Optimal number of samples that can be sent to Haptics through ovr_SubmitControllerVibration

§SubmitMaxSamples: c_int§SubmitOptimalSamples: c_int

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.