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

Method m_registerHandler

src/osvr/Common/DeviceComponent.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void DeviceComponent::m_registerHandler(vrpn_MESSAGEHANDLER handler,
55 void *userdata,
56 RawMessageType const &msgType) {
57 auto h = make_shared<MessageHandler<BaseDeviceMessageHandleTraits> >(
58 handler, userdata, msgType);
59 h->registerHandler(&m_getParent());
60 m_messageHandlers.push_back(h);
61 }
62 void DeviceComponent::m_update() {}
63} // namespace common
64} // namespace osvr

Callers

nothing calls this directly

Calls 2

registerHandlerMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected