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

Method DummyDevice

tests/plugins/com_osvr_example_DummySync.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39class 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

Callers

nothing calls this directly

Calls 2

osvrDeviceSyncInitFunction · 0.85

Tested by

no test coverage detected