| 48 | } |
| 49 | |
| 50 | int 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 | } |
nothing calls this directly
no test coverage detected