| 45 | }; |
| 46 | |
| 47 | OSVR_ReturnCode |
| 48 | osvrDeviceDirectionConfigure(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 | |
| 64 | OSVR_ReturnCode |
| 65 | osvrDeviceDirectionReportData(OSVR_IN_PTR OSVR_DirectionDeviceInterface iface, |
nothing calls this directly
no test coverage detected