I am trying to play Burnout Paradise with a Razer Hydra. On a standard controller, Burnout Paradise uses the right trigger as the gas peddle, and the left trigger as brake. To start an event, you need to hold down both the gas peddle and the brake at the same time. The Windows driver for the Razer Hydra binds both triggers to one axis, with the right trigger being negative, and the left trigger being positive.
To solve theis problem, I decided to try and write a FreePIE script that would bind the controls on the Razer Hydra to a vJoy device. As an initial test, I wrote the following script:
Code: Select all
def hydra_update():
diagnostics.debug("updated")
keyboard.setKey(Key.W, hydra[0].bumper)
if starting:
hydra[0].enabled = True
hydra[0].update += hydra_update