MCPcopy Create free account
hub / github.com/LibreVR/Revive / GetTouchHapticsDesc

Method GetTouchHapticsDesc

Revive/InputManager.cpp:192–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192ovrTouchHapticsDesc InputManager::GetTouchHapticsDesc(ovrControllerType controllerType)
193{
194 ovrTouchHapticsDesc desc = { 0 };
195
196 if (controllerType & ovrControllerType_Touch)
197 {
198 desc.SampleRateHz = REV_HAPTICS_SAMPLE_RATE;
199 desc.SampleSizeInBytes = sizeof(uint8_t);
200 desc.SubmitMaxSamples = OVR_HAPTICS_BUFFER_SAMPLES_MAX;
201 desc.SubmitMinSamples = 1;
202 desc.SubmitOptimalSamples = 20;
203 desc.QueueMinSizeToAvoidStarvation = 5;
204 }
205
206 return desc;
207}
208
209unsigned int InputManager::TrackedDevicePoseToOVRStatusFlags(vr::TrackedDevicePose_t pose)
210{

Callers 1

ovr_GetTouchHapticsDescFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected