I've built a FreeTrack cap for use in other flight simulators, and tried to make it work with YSFlight.
There were no tutorials online for use with head tracking devices in this game, so I went ahead and "figured it out".
So! If you happen to have TrackIR or other head tracking mechanisms and didn't know how to use them in YSFlight, here you go:
*By the way, 6DOF won't work. You'll only have "2D" look, and won't be able to translate your head in the cockpit.
.Your head tracking software of choice, already configured.
-How to set things up:
Install vJoy, then open the "Configure vJoy" app. Make sure that the "Enable vJoy" box is checked. Don't touch anything else.
Now, open up FreePIE. Click on "File" on the program's top left corner, then select "New". Then, on the white box, paste this in:
Code: Select all
def update(): yaw = filters.mapRange(trackIR.yaw, -90, 90, -vJoy.axisMax, vJoy.axisMax) pitch = filters.mapRange(trackIR.pitch, -90, 90, -vJoy.axisMax, vJoy.axisMax) vJoy.x = yaw vJoy.y = pitch if starting: trackIR.update += update
Next thing you want to do is to check if FreePIE is working. Open up the "Monitor vJoy" app and move your head. You should see the "X" and "Y" bars on the top right moving accordingly.
If everything's working correctly, go ahead and launch YSFlight. Click on "Options" and then "Joystick/Key Assignments" so that you can assign the vJoy joystick (aka your tracking device) to "X-Axis Point of View (+- 90 deg)" and "Y-Axis Point of View".
If you're not using any joysticks other than your tracking device, set them to "JOY1 AXIS 1" and "JOY1 AXIS 2 REVERSE", respectively.
Go ahead, create a quick flight and move your head around. Your head tracking should work.
.If the axis are incorrect, try messing around in the "Joystick/Key Assignments" thing. Maybe my configs don't work with yours.
.Need any help? Make sure to reply to this thread and I'll help you as soon as I can.
So yeah, there's that. Hope to have helped you guys.