58 ifaceObj->locomotion = locomotion.get();
59 opts->addComponent(locomotion);
68 auto guard = iface->getSendGuard();
70 iface->locomotion->sendNaviVelocityData(naviVelocity, sensor,
83 auto guard = iface->getSendGuard();
85 iface->locomotion->sendNaviPositionData(naviPosition, sensor,
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
Structure used internally to construct the desired type of device.
static shared_ptr< LocomotionComponent > create()
Factory method.
OSVR_ReturnCode osvrDeviceLocomotionReportNaviVelocity(OSVR_LocomotionDeviceInterface iface, OSVR_NaviVelocityState naviVelocity, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report velocity data for a specific sensor.
#define OSVR_PLUGIN_HANDLE_NULL_CONTEXT(FUNC, CONTEXT_NAME)
Internal macro for use in C API function implementations to check the validity of a context parameter...
#define OSVR_RETURN_FAILURE
The "failure" value for an OSVR_ReturnCode.
A structure defining a 2D vector, which represents position.
#define OSVR_RETURN_SUCCESS
The "success" value for an OSVR_ReturnCode.
OSVR_ReturnCode osvrDeviceLocomotionConfigure(OSVR_DeviceInitOptions opts, OSVR_LocomotionDeviceInterface *iface)
Specify that your device will implement the Locomotion interface.
OSVR_ReturnCode osvrDeviceLocomotionReportNaviPosition(OSVR_LocomotionDeviceInterface iface, OSVR_NaviPositionState naviPosition, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
Report position data for a specific sensor.
Internal, configured header file for verbosity macros.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Base class for the DeviceInterfaceObjects retrieved by plugins to let them send data on an interface...