| 46 | } |
| 47 | |
| 48 | void myOrientationCallback(void * /*userdata*/, |
| 49 | const OSVR_TimeValue * /*timestamp*/, |
| 50 | const OSVR_OrientationReport *report) { |
| 51 | std::cout << "Got ORIENTATION report: Orientation = (" |
| 52 | << osvrQuatGetW(&(report->rotation)) << ", (" |
| 53 | << osvrQuatGetX(&(report->rotation)) << ", " |
| 54 | << osvrQuatGetY(&(report->rotation)) << ", " |
| 55 | << osvrQuatGetZ(&(report->rotation)) << "))" << std::endl; |
| 56 | } |
| 57 | |
| 58 | void myPositionCallback(void * /*userdata*/, |
| 59 | const OSVR_TimeValue * /*timestamp*/, |
nothing calls this directly
no outgoing calls
no test coverage detected