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

Function myButtonCallback

examples/clients/ButtonCallback.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include <iostream>
34
35void myButtonCallback(void * /*userdata*/, const OSVR_TimeValue * /*timestamp*/,
36 const OSVR_ButtonReport *report) {
37 std::cout << "Got report: button is "
38 << (report->state ? "pressed" : "released") << std::endl;
39}
40
41int main() {
42 osvr::clientkit::ClientContext context(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected