MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / update

Method update

examples/plugin/com_osvr_example_Configured.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

osvrDeviceAnalogSetValueFunction · 0.85

Tested by

no test coverage detected