MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrDeviceDirectionReportData

Function osvrDeviceDirectionReportData

src/osvr/PluginKit/DirectionInterfaceC.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64OSVR_ReturnCode
65osvrDeviceDirectionReportData(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}

Callers

nothing calls this directly

Calls 3

lockMethod · 0.80
sendDirectionDataMethod · 0.80
getSendGuardMethod · 0.45

Tested by

no test coverage detected