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

Function main

examples/clients/Direction.cpp:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int main() {
51 osvr::clientkit::ClientContext context(
52 "com.osvr.exampleclients.DirectionCallback");
53
54 osvr::clientkit::Interface direction =
55 context.getInterface("/com_osvr_Multi/Location2D/direction");
56
57 direction.registerCallback(&directionCallback, NULL);
58
59 // Pretend that this is your application's mainloop.
60 while (1) {
61 context.update();
62 }
63
64 std::cout << "Library shut down, exiting." << std::endl;
65 return 0;
66}

Callers

nothing calls this directly

Calls 3

registerCallbackMethod · 0.80
getInterfaceMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected