summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-api')
-rw-r--r--opentrack-api/opentrack.h2
-rw-r--r--opentrack-api/trackers.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/opentrack-api/opentrack.h b/opentrack-api/opentrack.h
index 990b6aa4..88ba6cf0 100644
--- a/opentrack-api/opentrack.h
+++ b/opentrack-api/opentrack.h
@@ -50,7 +50,7 @@ OPENTRACK_EXPORT const char** opentrack_enum_trackers(opentrack self);
*/
OPENTRACK_EXPORT opentrack_tracker opentrack_make_tracker(opentrack ctx, const char* name);
OPENTRACK_EXPORT void opentrack_tracker_start(opentrack self, opentrack_tracker tracker);
-OPENTRACK_EXPORT int opentrack_tracker_tick(opentrack_tracker tracker, double* headpose);
+OPENTRACK_EXPORT void opentrack_tracker_tick(opentrack_tracker tracker, double* headpose);
OPENTRACK_EXPORT void opentrack_finalize_tracker(opentrack_tracker tracker);
#ifdef __cplusplus
}
diff --git a/opentrack-api/trackers.cpp b/opentrack-api/trackers.cpp
index 0f698e4c..937f7084 100644
--- a/opentrack-api/trackers.cpp
+++ b/opentrack-api/trackers.cpp
@@ -29,11 +29,10 @@ void OPENTRACK_EXPORT opentrack_tracker_start(opentrack self, opentrack_tracker
return tracker->StartTracker(&self->fake_frame);
}
-int OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose)
+void OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose)
{
- int ret = tracker->GiveHeadPoseData(headpose);
+ tracker->GiveHeadPoseData(headpose);
QApplication::processEvents(0, 5);
- return ret;
}
}