RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Joystick changes type

    Scheduled Pinned Locked Moved Help and Support
    xinmomame 2003joystick type
    2 Posts 2 Posters 356 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adnoci
      last edited by

      Pi Model or other hardware: Pi 3B
      Power Supply used: 5V 2.1A
      RetroPie Version Used (eg 3.6, 3.8.1, 4.1 - do not write latest):4.5.1
      Built From: Pre made SD Image on RetroPie website
      USB Devices connected: Wireless USB keyboard dongle, XinMo controller
      Controller used: XinMo

      Emulator: Mame2003

      Hello,

      Configuration in emulationstation works.
      Configuration in mame2003 is done and working.

      While playing arcade emulation the joysticks for both players stop working. Buttons are still working.
      Back in emulationstation the joysticks do nothing but the buttons do.

      If I remove the config file for the controllers and restart emulationstation i am able to reconfigure the joystick.

      When dooing this the name of the joystick has changed from type: Hat to type: Axis and configuration in mame is no longer working.

      Any ideas?

      New Config:

      <?xml version="1.0"?>
      <inputList>
              <inputConfig type="joystick" deviceName="xin-mo.com Xinmotek Controller" deviceGUID="03000000c0160000e105000010010000">
                      <input name="a" type="button" id="0" value="1" />
                      <input name="b" type="button" id="1" value="1" />
                      <input name="down" type="axis" id="1" value="1" />
                      <input name="hotkeyenable" type="button" id="8" value="1" />
                      <input name="left" type="axis" id="0" value="-1" />
                      <input name="leftshoulder" type="button" id="4" value="1" />
                      <input name="lefttrigger" type="button" id="7" value="1" />
                      <input name="right" type="axis" id="0" value="1" />
                      <input name="rightshoulder" type="button" id="5" value="1" />
                      <input name="righttrigger" type="button" id="6" 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="2" value="1" />
                      <input name="y" type="button" id="3" value="1" />
              </inputConfig>
      </inputList>
      

      Older config:

      <?xml version="1.0"?>
      <inputList>
              <inputConfig type="joystick" deviceName="xin-mo.com Xinmotek Controller" deviceGUID="03000000c0160000e105000010010000">
                      <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="hotkeyenable" type="button" id="8" value="1" />
                      <input name="left" type="hat" id="0" value="8" />
                      <input name="leftshoulder" type="button" id="4" value="1" />
                      <input name="lefttrigger" type="button" id="7" value="1" />
                      <input name="right" type="hat" id="0" value="2" />
                      <input name="rightshoulder" type="button" id="5" value="1" />
                      <input name="righttrigger" type="button" id="6" value="1" />
                      <input name="select" type="button" id="8" 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="2" value="1" />
                      <input name="y" type="button" id="3" value="1" />
              </inputConfig>
      </inputList>
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Both configs are correct. Your new configuration has axis for the directional buttons, most likely you've configured the joystick as a D-Pad this time ? EmulationStation should work with both D-pad and Joysticks.

        As for MAME2003, what game are you trying out ? It may be that the same has no analog controls and thus it expects digital (i.e. D-pad) controls. You can play with RetroArch's settings for this - in the Controls section of the RGUI, you can switch the P1 device type to RetroPad w/ Analog and change the User 1 Analog to Digital to either Left Analog or Right Analog, depending on how you mapped your joystick in MAME.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.