How to create and report from a device in your plugin. More...
Classes | |
class | osvr::pluginkit::DeviceToken |
Wrapper class for OSVR_DeviceToken. More... | |
Functions | |
OSVR_MessageType | osvr::pluginkit::registerMessageType (OSVR_PluginRegContext ctx, const char *name) |
Register or recall a message type by name. More... | |
OSVR_MessageType | osvr::pluginkit::registerMessageType (OSVR_PluginRegContext ctx, std::string const &name) |
How to create and report from a device in your plugin.
|
inline |
#include <osvr/PluginKit/DeviceInterface.h>
Register or recall a message type by name.
ctx | The plugin registration context received by your entry point function. |
name | A unique name for the message type. The library makes a copy of this string. |
std::runtime_error | if message type registration fails |
Definition at line 59 of file DeviceInterface.h.
|
inline |
#include <osvr/PluginKit/DeviceInterface.h>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 72 of file DeviceInterface.h.