| 190 | } |
| 191 | |
| 192 | ovrTouchHapticsDesc 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 | |
| 209 | unsigned int InputManager::TrackedDevicePoseToOVRStatusFlags(vr::TrackedDevicePose_t pose) |
| 210 | { |
no outgoing calls
no test coverage detected