| 39 | class DummyDevice { |
| 40 | public: |
| 41 | DummyDevice(OSVR_PluginRegContext ctx) { |
| 42 | std::cout << "Constructing dummy device" << std::endl; |
| 43 | |
| 44 | osvrDeviceSyncInit( |
| 45 | ctx, "MySyncDevice", |
| 46 | &m_dev); // Puts a token in m_dev that knows it's a sync |
| 47 | // device so osvrDeviceSendData knows that it |
| 48 | // doesn't need to acquire a lock. |
| 49 | |
| 50 | /// Sets the update callback |
| 51 | osvrDeviceRegisterUpdateCallback(m_dev, &DummyDevice::update, this); |
| 52 | } |
| 53 | |
| 54 | /// Trampoline: C-compatible callback bouncing into a member function. |
| 55 | /// Future enhancements to the C++ wrappers will make this tiny function |
nothing calls this directly
no test coverage detected