Sending 3D direction from a device in your plugin. More...
Typedefs | |
typedef struct OSVR_DirectionDeviceInterfaceObject * | OSVR_DirectionDeviceInterface |
Opaque type used in conjunction with a device token to send data on 3D Direction interface. | |
Functions | |
OSVR_ReturnCode | osvrDeviceDirectionConfigure (OSVR_DeviceInitOptions opts, OSVR_DirectionDeviceInterface *iface, OSVR_ChannelCount numSensors=1) |
Specify that your device will implement the Direction interface. More... | |
OSVR_ReturnCode | osvrDeviceDirectionReportData (OSVR_DirectionDeviceInterface iface, OSVR_DirectionState directionData, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp) |
Report data for a specific sensor. More... | |
Sending 3D direction from a device in your plugin.
OSVR_ReturnCode osvrDeviceDirectionConfigure | ( | OSVR_DeviceInitOptions | opts, |
OSVR_DirectionDeviceInterface * | iface, | ||
OSVR_ChannelCount | numSensors = 1 |
||
) |
#include <osvr/PluginKit/DirectionInterfaceC.h>
Specify that your device will implement the Direction 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 Direction interface. |
numSensors | The number of sensors you will be reporting Direction data for. You can report 1+ sensors. This parameter may be subject to external limitations. |
OSVR_ReturnCode osvrDeviceDirectionReportData | ( | OSVR_DirectionDeviceInterface | iface, |
OSVR_DirectionState | directionData, | ||
OSVR_ChannelCount | sensor, | ||
OSVR_TimeValue const * | timestamp | ||
) |
#include <osvr/PluginKit/DirectionInterfaceC.h>
Report data for a specific sensor.
iface | Direction interface |
directionData | Copy of 3D Direction data |
sensor | Sensor number |
timestamp | Timestamp correlating to 3D direction data. |