OSVR-Core
|
Sending locomotion reports from a device in your plugin. More...
Typedefs | |
typedef struct OSVR_LocomotionDeviceInterfaceObject * | OSVR_LocomotionDeviceInterface |
Opaque type used in conjunction with a device token to send data on Locomotion Interface. | |
Functions | |
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode | osvrDeviceLocomotionConfigure (OSVR_INOUT_PTR OSVR_DeviceInitOptions opts, OSVR_OUT_PTR OSVR_LocomotionDeviceInterface *iface) OSVR_FUNC_NONNULL((1 |
Specify that your device will implement the Locomotion interface. More... | |
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode | osvrDeviceLocomotionReportNaviVelocity (OSVR_IN_PTR OSVR_LocomotionDeviceInterface iface, OSVR_IN OSVR_NaviVelocityState naviVelocity, OSVR_IN OSVR_ChannelCount sensor, OSVR_IN_PTR OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1 |
Report velocity data for a specific sensor. More... | |
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode | osvrDeviceLocomotionReportNaviPosition (OSVR_IN_PTR OSVR_LocomotionDeviceInterface iface, OSVR_IN OSVR_NaviPositionState naviPosition, OSVR_IN OSVR_ChannelCount sensor, OSVR_IN_PTR OSVR_TimeValue const *timestamp) OSVR_FUNC_NONNULL((1 |
Report position data for a specific sensor. More... | |
Sending locomotion reports from a device in your plugin.
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode osvrDeviceLocomotionConfigure | ( | OSVR_INOUT_PTR OSVR_DeviceInitOptions | opts, |
OSVR_OUT_PTR OSVR_LocomotionDeviceInterface * | iface | ||
) |
Specify that your device will implement the Locomotion interface.
opts | The device init options object. | |
[out] | iface | An interface object you should retain with the same lifetime as the device token in order to send messages conforming to an Locomotion interface. |
numSensors | The number of sensors you will be reporting Locomotion data : You can report for 1 sensor per device. |
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode osvrDeviceLocomotionReportNaviPosition | ( | OSVR_IN_PTR OSVR_LocomotionDeviceInterface | iface, |
OSVR_IN OSVR_NaviPositionState | naviPosition, | ||
OSVR_IN OSVR_ChannelCount | sensor, | ||
OSVR_IN_PTR OSVR_TimeValue const * | timestamp | ||
) |
Report position data for a specific sensor.
dev | Device token |
iface | Locomotion Interface |
naviPosition | navigation position |
sensor | Sensor number |
timestamp | Timestamp correlating to navigation position |
OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode OSVR_PLUGINKIT_EXPORT OSVR_ReturnCode osvrDeviceLocomotionReportNaviVelocity | ( | OSVR_IN_PTR OSVR_LocomotionDeviceInterface | iface, |
OSVR_IN OSVR_NaviVelocityState | naviVelocity, | ||
OSVR_IN OSVR_ChannelCount | sensor, | ||
OSVR_IN_PTR OSVR_TimeValue const * | timestamp | ||
) |
Report velocity data for a specific sensor.
dev | Device token |
iface | Locomotion Interface |
naviVelocity | navigation velocity |
sensor | Sensor number |
timestamp | Timestamp correlating to navigation velocity |