summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api/trackers.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-30 23:09:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-30 23:09:36 +0100
commit657cf32cb57257556c26f702e9e09b0edb15f350 (patch)
tree7ce5f6642a3be972c37da9822c123dd61093c9b0 /opentrack-api/trackers.cpp
parentfde903fda58eb715147150c8dbc2e16970ab1761 (diff)
make standalone libopentrack-api.so work
Diffstat (limited to 'opentrack-api/trackers.cpp')
-rw-r--r--opentrack-api/trackers.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/opentrack-api/trackers.cpp b/opentrack-api/trackers.cpp
index 2527017b..0f698e4c 100644
--- a/opentrack-api/trackers.cpp
+++ b/opentrack-api/trackers.cpp
@@ -5,13 +5,12 @@ extern "C" {
opentrack_tracker OPENTRACK_EXPORT opentrack_make_tracker(opentrack ctx, const char* name)
{
- QString n(name);
for (int i = 0; i < ctx->meta_list.size(); i++)
{
- auto meta = ctx->meta_list[i];
+ auto meta = ctx->meta_list.at(i);
if (ctx->meta_list.at(i).path == name)
{
- ITracker* foo = reinterpret_cast<ITracker*>(meta.lib->Constructor());
+ ITracker* foo = static_cast<ITracker*>(meta.lib->Constructor());
return foo;
}
}
@@ -32,7 +31,9 @@ void OPENTRACK_EXPORT opentrack_tracker_start(opentrack self, opentrack_tracker
int OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose)
{
- return tracker->GiveHeadPoseData(headpose);
+ int ret = tracker->GiveHeadPoseData(headpose);
+ QApplication::processEvents(0, 5);
+ return ret;
}
}