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_ReturnCode | osvrDeviceLocomotionConfigure (OSVR_DeviceInitOptions opts, OSVR_LocomotionDeviceInterface *iface) |
| Specify that your device will implement the Locomotion interface. More... | |
| OSVR_ReturnCode | osvrDeviceLocomotionReportNaviVelocity (OSVR_LocomotionDeviceInterface iface, OSVR_NaviVelocityState naviVelocity, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp) |
| Report velocity data for a specific sensor. More... | |
| OSVR_ReturnCode | osvrDeviceLocomotionReportNaviPosition (OSVR_LocomotionDeviceInterface iface, OSVR_NaviPositionState naviPosition, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp) |
| Report position data for a specific sensor. More... | |
Sending locomotion reports from a device in your plugin.
| OSVR_ReturnCode osvrDeviceLocomotionConfigure | ( | OSVR_DeviceInitOptions | opts, |
| OSVR_LocomotionDeviceInterface * | iface | ||
| ) |
#include <osvr/PluginKit/LocomotionInterfaceC.h>
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. |
Definition at line 48 of file LocomotionInterfaceC.cpp.
| OSVR_ReturnCode osvrDeviceLocomotionReportNaviVelocity | ( | OSVR_LocomotionDeviceInterface | iface, |
| OSVR_NaviVelocityState | naviVelocity, | ||
| OSVR_ChannelCount | sensor, | ||
| OSVR_TimeValue const * | timestamp | ||
| ) |
#include <osvr/PluginKit/LocomotionInterfaceC.h>
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 |
Definition at line 63 of file LocomotionInterfaceC.cpp.
| OSVR_ReturnCode osvrDeviceLocomotionReportNaviPosition | ( | OSVR_LocomotionDeviceInterface | iface, |
| OSVR_NaviPositionState | naviPosition, | ||
| OSVR_ChannelCount | sensor, | ||
| OSVR_TimeValue const * | timestamp | ||
| ) |
#include <osvr/PluginKit/LocomotionInterfaceC.h>
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 |
Definition at line 78 of file LocomotionInterfaceC.cpp.