Head Track Integration with X-Camera#5
Open
markcellis wants to merge 2 commits intoamyinorbit:mainfrom
Open
Conversation
First Cut at integrating to X-Camera's head tracking API
Fix reversed roll
|
I have just compiled your branch, @markcellis, on Linux and it just works. Thank you! |
|
Confirmed on macOS (M2), too. Works exactly as one would expect. Thanks @markcellis ! And here is an Apple silicon build ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These code changes allow HeadTrack to coexist and integrate with X-Camera.
The file, X-Camera.h, implements the interface to X-Camera. It will allow you to efficiently test of the X-Camera plugin is installed and enabled.
The frame update code of HeadTrack has been modified to test if X-Camera is installed and enabled. If it is and the view is either 3D Cockpit or Free camera then HeadTrack will send the tracking offsets to X-Camera rather than manipulating the X-Plane pilot head datarefs directly.
Note that headtrack.c was renamed to headtrack.cpp so that a C++ compiler mode will be used to compile the X-Camera class in X-Camera.h