I hacked this together to get something like working TrackIR in Rebirth, bare in mind this has flaws. I also play the game entirely from my Warthog HOTAS and toggle the freelook wherein my trackIR takes over the mouse to look around, there is some drift and often have to reset POV. But don't care enough to put anymore effort into making a "perfect" solution.
You'll need FreePIE http://andersmalmgren.github.io/FreePIE/
and the following python code, copy that into FreePIE, save and run. With your TrackIR running as usual if you've done everything correctly as soon as you run the script your TrackIR will be sending mouse input, should be pretty obvious. Then just fire up the game and toggle freelook.
Code: Select all
#Use one:one profile in TrackIR #Tweak Head Track sensitivity using "multiply = X" PageDown to toggle on/off #Tweak Zooming sensitivity using "maxZoom = X" End to toggle on/off #Tweak Lean/Strafe minimum distance using "minLean = X" Delete to toggle on/off # Change these variables to customize your experience if starting: enabledHT = True # Set to True or False depending on if you want the headtracking to begin immediately multiply = 30 # Speed of head tracking # Change these button to remap the toggle keys toggleHT = keyboard.getPressed(Key.PageDown) #Toggle Head Tracking # mapping.. def update(): yaw = trackIR.yaw pitch = trackIR.pitch deltaYaw = filters.delta(yaw) deltaPitch = filters.delta(pitch) #__Head Look Section__ if (enabledHT): mouse.deltaX = deltaYaw*multiply mouse.deltaY = -deltaPitch*multiply if starting: trackIR.update += update if toggleHT: enabledHT = not enabledHT