| 62 | } |
| 63 | |
| 64 | OSVR_ReturnCode |
| 65 | osvrDeviceDirectionReportData(OSVR_IN_PTR OSVR_DirectionDeviceInterface iface, |
| 66 | OSVR_IN_PTR OSVR_DirectionState directionData, |
| 67 | OSVR_IN OSVR_ChannelCount sensor, |
| 68 | OSVR_IN_PTR OSVR_TimeValue const *timestamp) { |
| 69 | auto guard = iface->getSendGuard(); |
| 70 | if (guard->lock()) { |
| 71 | iface->direction->sendDirectionData(directionData, sensor, *timestamp); |
| 72 | return OSVR_RETURN_SUCCESS; |
| 73 | } |
| 74 | |
| 75 | return OSVR_RETURN_FAILURE; |
| 76 | } |
nothing calls this directly
no test coverage detected