Struct ovr_sys::ovrTouchHapticsDesc
source · #[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§
source§impl Clone for ovrTouchHapticsDesc
impl Clone for ovrTouchHapticsDesc
source§fn clone(&self) -> ovrTouchHapticsDesc
fn clone(&self) -> ovrTouchHapticsDesc
Returns a copy 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 more