diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2018-01-05 04:12:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 04:12:26 -0700 |
commit | 3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff (patch) | |
tree | e5fea4c0e03d09122ac90de0f28617f3b62326e6 /src/survive.c | |
parent | 98d62e595b90a76ecd6d4f87e95e5cc6af45a4ce (diff) | |
parent | ed85661121c3ed8769a69d059fd3162aec33c6fe (diff) | |
download | libsurvive-3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff.tar.gz libsurvive-3c64031e671e14eb3baf90ec12cfaa8c0ecb5eff.tar.bz2 |
Merge pull request #91 from mwturvey/MakeTrackingGood
Provide standard way for posers to report pose output
Diffstat (limited to 'src/survive.c')
-rwxr-xr-x | src/survive.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/survive.c b/src/survive.c index 75c07bf..1c406e8 100755 --- a/src/survive.c +++ b/src/survive.c @@ -184,6 +184,7 @@ SurviveContext * survive_init( int headless ) // start the thread to process button data ctx->buttonservicethread = OGCreateThread(button_servicer, ctx); survive_install_button_fn(ctx, NULL); + survive_install_raw_pose_fn(ctx, NULL); return ctx; } @@ -235,9 +236,15 @@ void survive_install_button_fn(SurviveContext * ctx, button_process_func fbp) ctx->buttonproc = fbp; else ctx->buttonproc = survive_default_button_process; - } +void survive_install_raw_pose_fn(SurviveContext * ctx, raw_pose_func fbp) +{ + if (fbp) + ctx->rawposeproc = fbp; + else + ctx->rawposeproc = survive_default_raw_pose_process; +} int survive_add_object( SurviveContext * ctx, SurviveObject * obj ) { int oldct = ctx->objs_ct; |