Xbox 360 Controller LT-RT Fix

Discussion in 'Misc PSX Discussion' started by d0x!, Jul 3, 2013.

  1. d0x!

    d0x! el dox0r

    Messages:
    29
    Likes Received:
    0
    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.
    Last edited: Jul 3, 2013
  2. NGEmu.com Advertisement

  3. PsyMan

    PsyMan Banned

    Messages:
    2,277
    Likes Received:
    11
    Alternatively, you can use an open 360 pad driver and change the trigger behavior.
  4. d0x!

    d0x! el dox0r

    Messages:
    29
    Likes Received:
    0
    True but Xbcd does not work on wireless controllers. Also I prefer to keep using official drivers for native xinput game support with the latest games. This is just a quick simple fix / work around without having to resort to third party drivers which can be unstable. Although admit official drivers are lacking in the features apartment :(
  5. Shendo

    Shendo Moderator Staff Member Moderator

    Messages:
    5,154
    Likes Received:
    45
    Great work but it's not necessary. Pokopom pad plugin fixes all known issues with Xinput gamepads.
  6. d0x!

    d0x! el dox0r

    Messages:
    29
    Likes Received:
    0
    I made this mainly for myself to use in Xebra, which as you know is non-plugin based.
  7. Shendo

    Shendo Moderator Staff Member Moderator

    Messages:
    5,154
    Likes Received:
    45
    Oh, OK then.
    I was thrown off since you never mentioned Xebra and you haven't posted in the Xebra section.
  8. d0x!

    d0x! el dox0r

    Messages:
    29
    Likes Received:
    0
    I would of stuck this in Xebra sub forum but if people prefer to use PSX emulator and noCash PSX then they havent got the luxury of Pokopom pad plugin.

    Also I didnt know of such plugins. Thanks for the heads up. I will have check that out. But ultimately I prefer Xebra.
  9. bradleydraco

    bradleydraco New Member

    Messages:
    1
    Likes Received:
    0

    i do not see the attachment anywhere and would really like it.
    :)
  10. TanPham

    TanPham New Member

    Messages:
    1
    Likes Received:
    0
    hi, where is attached file??

Share This Page