| 66 | } |
| 67 | |
| 68 | OSVR_ReturnCode update() { |
| 69 | /// Because this is an async device, we can block for data, |
| 70 | /// simulated here with a sleep. |
| 71 | std::this_thread::sleep_for(std::chrono::seconds(m_sleepTime)); |
| 72 | |
| 73 | /// Report the value of channel 0 |
| 74 | osvrDeviceAnalogSetValue(m_dev, m_analog, m_myVal, 0); |
| 75 | return OSVR_RETURN_SUCCESS; |
| 76 | } |
| 77 | |
| 78 | private: |
| 79 | osvr::pluginkit::DeviceToken m_dev; |
nothing calls this directly
no test coverage detected