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

Method setButtons

src/osvr/Connection/DeviceInitObject.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void OSVR_DeviceInitObject::setButtons(
82 OSVR_ChannelCount num, osvr::connection::ButtonServerInterface **iface) {
83 if (setOptional(num, iface, m_buttons)) {
84 m_buttonIface = iface;
85 } else {
86 m_buttonIface = nullptr;
87 }
88}
89
90void OSVR_DeviceInitObject::returnButtonInterface(
91 osvr::connection::ButtonServerInterface &iface) {

Callers 2

Calls 1

setOptionalFunction · 0.85

Tested by

no test coverage detected