I use this script in combination with vjoy, works for me:
#maps trackir input to vJoy axes
from System import Int16
def toIntSafe(value):
max = Int16.MaxValue*0.5+2
min =-Int16.MaxValue*0.5+1
if value > max: return max
if value < min: return min
return value
def update():
#range of...