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

Method sendDirectionData

src/osvr/Common/DirectionComponent.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 : m_numSensor(numChan) {}
75
76 void
77 DirectionComponent::sendDirectionData(OSVR_DirectionState direction,
78 OSVR_ChannelCount sensor,
79 OSVR_TimeValue const &timestamp) {
80
81 Buffer<> buf;
82 messages::DirectionRecord::MessageSerialization msg(direction, sensor);
83 serialize(buf, msg);
84
85 m_getParent().packMessage(buf, directionRecord.getMessageType(),
86 timestamp);
87 }
88
89 int VRPN_CALLBACK
90 DirectionComponent::m_handleDirectionRecord(void *userdata,

Calls 3

serializeFunction · 0.85
packMessageMethod · 0.80
getMessageTypeMethod · 0.80

Tested by

no test coverage detected