Repository navigation
TrackIR support - #62
Open
raistlen007 wants to merge 5 commits into
Open
raistlen007 wants to merge 5 commits into
raistlen007 wants to merge 5 commits into
Conversation
Share one poll path between the TrackIR and OpenTrack sources, with only the native NPClient part kept to Windows, and write the head-tracked camera rows through one function. Add the head offset to the packed view state directly rather than through pointers to its members. Keep the original reticle code in the non-modern branch, sort the new includes, center the head tracking menu like the video options, describe both Windows libraries in CMakeLists.txt, and format the new code.
The pose, the per-frame state and the source switch serve TrackIR and OpenTrack alike, so they move to head_tracking.c as XwaHeadTracking_* and XwaHeadPose. trackir.c keeps only the native NPClient source, next to opentrack_udp.c. The TrackIR name stays where it means the device: the source option, its config value and the NPClient code.
Contributor
Author
|
Merged current main (no conflicts) and cleaned it up:
|
…upport # Conflicts: # src/xwa/render/render_scene_core.c
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.
Adds optional 6DOF head tracking through native TrackIR (Windows NPClient) and OpenTrack UDP (port 4242).
Supports cockpit, turret, external, hyperspace, and hangar views in both classic and remastered renderers.
Implementation
-Options menu: Adds a dedicated Head Tracking screen under Input Options, with source selection, enable/disable controls, axis inversion settings, and persistent configuration.
Validation