Guys I've made a quick fix for the Left Trigger and Right Trigger Z axis issue on official Xbox 360 Controllers (wired and wireless).
edit:
You should only use this fix if you prefer to use non plugin based emulators such as Xebra, PSX Emulator or NoCash PSX or EPSXE. If you use other plugin based emulators with official Xbox 360 controller then you should use Pokopom pad plugin.
end edit.
What Problem?
The trigger button are on the Z axis as reported by the official Xbox 360 driver.
The default Z axis is 50% (no triggers pressed), when when one trigger is pressed the Z axis will increase, when the other trigger is pressed the Z axis will decrease and bring everything back to 50% if pressed at the same time.
In games that require you to press both triggers at the same time this will be a problem since the emulator would see the axis as 50%, the same as no button pressed.
A practical example of this issue is Final Fantasy 8 - you need to run away near the beginning of the game and you cant if you mapped L2 and R2 to LT and RT.
The Fix
I used Autohotkey to compile an automated script that Maps LT and RT to keys N and M on the keyboard. In addition I also used the Xinput API to determine the state of each input so no more Z axis issue.
Download the exe (in zip) attached to this post.
(1) Run LT-RT.exe.
(2) This will open a process which will minimise into Windows Task Bar.
(3) Go to controller config in your emulator.
(4) Assign L2 and R2 to LT and RT button press on your Xbox 360 Controller.
(5) This will map L2 and R2 to keyboards button N and M.
(6) When both triggers are pressed they will both be recognised as button presses.
Until an emulator makes use of the Xinput API for their controller config this is the best we have until then.
edit:
You should only use this fix if you prefer to use non plugin based emulators such as Xebra, PSX Emulator or NoCash PSX or EPSXE. If you use other plugin based emulators with official Xbox 360 controller then you should use Pokopom pad plugin.
end edit.
What Problem?
The trigger button are on the Z axis as reported by the official Xbox 360 driver.
The default Z axis is 50% (no triggers pressed), when when one trigger is pressed the Z axis will increase, when the other trigger is pressed the Z axis will decrease and bring everything back to 50% if pressed at the same time.
In games that require you to press both triggers at the same time this will be a problem since the emulator would see the axis as 50%, the same as no button pressed.
A practical example of this issue is Final Fantasy 8 - you need to run away near the beginning of the game and you cant if you mapped L2 and R2 to LT and RT.
The Fix
I used Autohotkey to compile an automated script that Maps LT and RT to keys N and M on the keyboard. In addition I also used the Xinput API to determine the state of each input so no more Z axis issue.
Download the exe (in zip) attached to this post.
(1) Run LT-RT.exe.
(2) This will open a process which will minimise into Windows Task Bar.
(3) Go to controller config in your emulator.
(4) Assign L2 and R2 to LT and RT button press on your Xbox 360 Controller.
(5) This will map L2 and R2 to keyboards button N and M.
(6) When both triggers are pressed they will both be recognised as button presses.
Until an emulator makes use of the Xinput API for their controller config this is the best we have until then.