How to Multiple Values for same input in es_input.cfg

Home Forums RetroPie Project Controller Configuration in RetroPie How to Multiple Values for same input in es_input.cfg

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of tsteenbakkers tsteenbakkers 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #110407
    Profile photo of geauxwave
    geauxwave
    Participant

    Hi, I was wondering if it’s possible to assign two values to the same input on the same controller in es_input.cfg. I have two different USB controller adapters, a Sega Saturn, and a SNES. Both are recognized as “HuiJia USB GamePad” so they can’t be differentiated in es_input.cfg. The issue I’m having is that the directional buttons are different on the two. One the Saturn adapter, they are “hat”, and on the SNES adapter they are “axis”.

    I have tried the following with no success…

    <inputConfig type="joystick" deviceName="HuiJia  USB GamePad">
    ...
    <input name="left" type="axis" id="0" value="-1" type="hat" id="0" value="8"/>
    ...
    </inputConfig>

    and

    <inputConfig type="joystick" deviceName="HuiJia  USB GamePad">
    ...
    <input name="left" type="axis" id="0" value="-1"/>
    <input name="left" type="hat" id="0" value="8"/>
    ...
    </inputConfig>

    and

    
    <inputConfig type="joystick" deviceName="HuiJia  USB GamePad">
    ...
    <input name="left" type="hat" id="0" value="8"/>
    ...
    </inputConfig>
    <inputConfig type="joystick" deviceName="HuiJia  USB GamePad">
    ...
    <input name="left" type="axis" id="0" value="-1"/>
    ...
    </inputConfig>

    Is there any other way I can accomplish this? As of now, I am just reconfiguring the controller inputs in the ES menu each time, but was hoping to not have to do that if possible.

    Thanks in advance for the help.

    • This topic was modified 1 year, 5 months ago by Profile photo of geauxwave geauxwave.

    #110512
    Profile photo of geauxwave
    geauxwave
    Participant

    This is resolved. I used the ES controller config tool, and then looked into the temporary file it saves, and in there I saw that a “deviceGUID” value that was unique between the two controllers. I don’t believe this carries over to the final es_input.cfg, so I manually put it in there, and now I can differentiate between the two controllers. Problem solved.

    <inputConfig type="joystick" deviceName="HuiJia  USB GamePad" deviceGUID="030000008f0e00001030000010010000">
        <input name="a" type="button" id="0" value="1"/>
        <input name="b" type="button" id="1" value="1"/>
        <input name="down" type="hat" id="0" value="4"/>
        <input name="left" type="hat" id="0" value="8"/>
        <input name="leftbottom" type="button" id="6" value="1"/>
        <input name="right" type="hat" id="0" value="2"/>
        <input name="rightbottom" type="button" id="2" value="1"/>
        <input name="select" type="button" id="5" value="1"/>
        <input name="start" type="button" id="9" value="1"/>
        <input name="up" type="hat" id="0" value="1"/>
        <input name="x" type="button" id="3" value="1"/>
        <input name="y" type="button" id="4" value="1"/>
      </inputConfig>
      <inputConfig type="joystick" deviceName="HuiJia  USB GamePad" deviceGUID="030000008f0e00001330000010010000">
        <input name="a" type="button" id="1" value="1"/>
        <input name="b" type="button" id="2" value="1"/>
        <input name="down" type="axis" id="1" value="1"/>
        <input name="left" type="axis" id="0" value="-1"/>
        <input name="leftbottom" type="button" id="6" value="1"/>
        <input name="right" type="axis" id="0" value="1"/>
        <input name="rightbottom" type="button" id="7" value="1"/>
        <input name="select" type="button" id="8" value="1"/>
        <input name="start" type="button" id="9" value="1"/>
        <input name="up" type="axis" id="1" value="-1"/>
        <input name="x" type="button" id="0" value="1"/>
        <input name="y" type="button" id="3" value="1"/>
      </inputConfig>
    #112613
    Profile photo of tsteenbakkers
    tsteenbakkers
    Participant

    Hi,

    I am facing a similar issue. I have both a SNES USB adapter aswell as an N64 USB adapter both recognized as a HuiJia USB Gamepad. when i configure either of them it works in both es as in emulator itself but when i add the other controller parts of the controls do not work (e.g. d-pad buttons).

    in the saved es_input.cfg i see both controllers with different mappings inside but they share the same UUID unlike in your case. Could you please share the location and filename of this temporary file aswell as when it is saved?

    if my case is like yours both controllers might have a different UUID which does not transfer into the actual es_input.cfg.

    i am still debugging this issue so any help to pinpoint the exact issue is welcome.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar