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

Function osvrDeviceDirectionConfigure

src/osvr/PluginKit/DirectionInterfaceC.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47OSVR_ReturnCode
48osvrDeviceDirectionConfigure(OSVR_INOUT_PTR OSVR_DeviceInitOptions opts,
49 OSVR_OUT_PTR OSVR_DirectionDeviceInterface *iface,
50 OSVR_IN OSVR_ChannelCount numSensors) {
51
52 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceDirectionConfigure", opts);
53 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceDirectionConfigure", iface);
54 OSVR_DirectionDeviceInterface ifaceObj =
55 opts->makeInterfaceObject<OSVR_DirectionDeviceInterfaceObject>();
56 *iface = ifaceObj;
57
58 auto direction = osvr::common::DirectionComponent::create(numSensors);
59 ifaceObj->direction = direction.get();
60 opts->addComponent(direction);
61 return OSVR_RETURN_SUCCESS;
62}
63
64OSVR_ReturnCode
65osvrDeviceDirectionReportData(OSVR_IN_PTR OSVR_DirectionDeviceInterface iface,

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
addComponentMethod · 0.45

Tested by

no test coverage detected