I have been using Freepie/TrackIR for many years with this controller (mostly the Borderlands series) and it works seamlessly. Track Ir gives me precision mous aiming and the gamepads makes moving in the game environment easier than a keyboard. when I touch a button on the F310 it overrides the TrackIR and vice versa. Not so with Battlefield 1 however, If I move too much x or y axis with the controller in this game I end up facing in a random direction. My workaround would be to map the "toggle = keyboard.getPressed(Key.Z)" script to the Left trigger on my Gamepad which controls aim so that it turn on when aiming and off when I exit aim mode (aim mode can be toggled in the game). Can this be done? I have no idea how the script works and have tried a couple of things using joypad[ and xbox360[ with no luck. I have been using the basic script example for trackIR which has served me well
Code: Select all
def update():
yaw = trackIR.yaw
pitch = trackIR.pitch
deltaYaw = filters.delta(yaw)
deltaPitch = filters.delta(pitch)
if (enabled): #if (enabled and hotkey)
mouse.deltaX = deltaYaw*multiply
mouse.deltaY = -deltaPitch*multiply
if starting:
enabled = True
multiply = 19
trackIR.update += update
hotkey = mouse.rightButton
toggle = keyboard.getPressed(Key.Z)
if toggle:[/quote]
enabled = not enabled