Skip to content

Head Track Integration with X-Camera#5

Open
markcellis wants to merge 2 commits intoamyinorbit:mainfrom
markcellis:main
Open

Head Track Integration with X-Camera#5
markcellis wants to merge 2 commits intoamyinorbit:mainfrom
markcellis:main

Conversation

@markcellis
Copy link

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

First Cut at integrating to X-Camera's head tracking API
Fix reversed roll
@gegoune
Copy link

gegoune commented Aug 17, 2024

I have just compiled your branch, @markcellis, on Linux and it just works. Thank you!

@panunu
Copy link

panunu commented Nov 25, 2025

Confirmed on macOS (M2), too. Works exactly as one would expect. Thanks @markcellis !

And here is an Apple silicon build (htrack.xpl) in case someone is looking for one: mac_x64.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants