Controlling EmulationStation with two different controllers with same name

Welcome Page Forums RetroPie Project Controller Configuration in RetroPie Controlling EmulationStation with two different controllers with same name

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of geauxwave geauxwave 1 year, 10 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #103241
    Profile photo of geauxwave
    geauxwave
    Participant

    I was wondering if there was any way to specify/identify controllers in the es_input.cfg by something other than device name. I’m using USB controller adapters for SNES and Sega Saturn controllers. They are both identified as “HuiJia USB GamePad”, so I’m only able to configure one or the other for EmulationStation input. One uses “axis” for direction, and the other uses “hat”. I tried putting both of these blocks of code in es_input.cfg, but one overwrites the other. Is it possible for to specify controllers by joystick number (e.g. js0 and js1) like we do in the retroarch.cfg files?

    These are the settings for the SNES controller…

    `<inputConfig type=”joystick” deviceName=”HuiJia USB GamePad”>
    <input name=”up” type=”axis” id=”1″ value=”-1″/>
    <input name=”pagedown” type=”button” id=”7″ value=”1″/>
    <input name=”start” type=”button” id=”9″ value=”1″/>
    <input name=”pageup” type=”button” id=”6″ value=”1″/>
    <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=”right” type=”axis” id=”0″ value=”1″/>
    <input name=”select” type=”button” id=”8″ value=”1″/>
    <input name=”left” type=”axis” id=”0″ value=”-1″/>
    </inputConfig>`

    These are the settings for the Sega Saturn controller…

    `<inputConfig type=”joystick” deviceName=”HuiJia USB GamePad”>
    <input name=”up” type=”hat” id=”0″ value=”1″/>
    <input name=”pagedown” type=”button” id=”2″ value=”1″/>
    <input name=”start” type=”button” id=”9″ value=”1″/>
    <input name=”pageup” type=”button” id=”21″ value=”1″/>
    <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=”right” type=”hat” id=”0″ value=”2″/>
    <input name=”select” type=”button” id=”7″ value=”1″/>
    <input name=”left” type=”hat” id=”0″ value=”8″/>
    </inputConfig>`

Viewing 1 post (of 1 total)

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

Skip to toolbar