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

Method m_handle

src/osvr/Client/ButtonRemoteFactory.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87 private:
88 void m_handle(vrpn_BUTTONCB const &info) {
89 if (!m_all && !m_sensors.contains(info.button)) {
90 return;
91 }
92
93 OSVR_TimeValue timestamp;
94 osvrStructTimevalToTimeValue(&timestamp, &(info.msg_time));
95
96 m_report(timestamp, info.button, info.state);
97 }
98 void m_handle(vrpn_BUTTONSTATESCB const &info) {
99 auto maxChannel = m_all ? info.num_buttons - 1 : m_sensors.getValue();
100 if (!m_all &&

Callers 2

handleMethod · 0.95
handle_statesMethod · 0.95

Calls 7

getIntersectionMethod · 0.80
setRangeMaxMinMethod · 0.80
extendRangeToMaxMethod · 0.80
containsMethod · 0.45
getValueMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected