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

Method update

examples/plugin/com_osvr_example_AnalogSync.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 OSVR_ReturnCode update() {
61 /// Make up some dummy data that changes to report.
62 m_myVal = (m_myVal + 0.1);
63 if (m_myVal > 10.0) {
64 m_myVal = 0;
65 }
66
67 /// Report the value of channel 0
68 osvrDeviceAnalogSetValue(m_dev, m_analog, m_myVal, 0);
69 return OSVR_RETURN_SUCCESS;
70 }
71
72 private:
73 osvr::pluginkit::DeviceToken m_dev;

Callers 13

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

osvrDeviceAnalogSetValueFunction · 0.85

Tested by

no test coverage detected