| 207 | } |
| 208 | |
| 209 | unsigned int InputManager::TrackedDevicePoseToOVRStatusFlags(vr::TrackedDevicePose_t pose) |
| 210 | { |
| 211 | unsigned int result = 0; |
| 212 | |
| 213 | if (pose.bPoseIsValid) |
| 214 | { |
| 215 | result = ovrStatus_OrientationValid | ovrStatus_PositionValid; |
| 216 | if (pose.bDeviceIsConnected) |
| 217 | result |= ovrStatus_OrientationTracked; |
| 218 | if (pose.eTrackingResult != vr::TrackingResult_Calibrating_OutOfRange && |
| 219 | pose.eTrackingResult != vr::TrackingResult_Running_OutOfRange) |
| 220 | result |= ovrStatus_PositionTracked; |
| 221 | } |
| 222 | |
| 223 | return result; |
| 224 | } |
| 225 | |
| 226 | ovrPoseStatef InputManager::TrackedDevicePoseToOVRPose(vr::TrackedDevicePose_t pose, ovrPoseStatef& lastPose, double time) |
| 227 | { |
nothing calls this directly
no outgoing calls
no test coverage detected