54 opts->setButtons(numChan, ifaceObj->button);
77 auto guard = iface->getSendGuard();
79 bool sendResult = iface->button->setValue(val, chan, *timestamp);
105 auto guard = iface->getSendGuard();
107 iface->button->setValues(val, chans, *timestamp);
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
A DeviceToken connects the generic device interaction code in PluginKit's C API with the workings of ...
void osvrTimeValueGetNow(OSVR_TimeValue *dest)
Gets the current time in the TimeValue. Parallel to gettimeofday.
Structure used internally to construct the desired type of device.
#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.
#define OSVR_RETURN_SUCCESS
The "success" value for an OSVR_ReturnCode.
uint8_t OSVR_ButtonState
Type of button state.
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...