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

    Anyway to configure two joystick mappings that use the same device name?

    Scheduled Pinned Locked Moved Help and Support
    retroarchjoystick mappindragonrise
    3 Posts 3 Posters 1.9k 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.
    • J
      jamesarm97
      last edited by

      Anyone know how to have retroarch have two configurations for the same joystick model but on two different usb controllers? I have two joysticks (the common Dragon USB) but one is rotated because of space. When I configure one to account for the rotation the other is then backwards. Retroarch joystick directory only has one config file with the Dragon name and one button / axis mapping. So both joysticks use the same mapping. I need one map per joystick so it would have to be based on the device id and not name if this is even possible.

      In retoarch-joypads I have DragonriseInc.GenericUSBJoystick.cfg, It uses a input_device = "DragonRise Inc. Generic USB Joystick". It has one set of input definitions but I need two, one for each joystick because one is rotated and up is left and down is right. Because they are addressed in the config by name they are not differentiated. Is it possible to have two configs and assign by device uuid or something?

      Retropi 2.0 on rpi3 running latest kernel as of 2016-12-15.

      edmaul69E meleuM 2 Replies Last reply Reply Quote 0
      • edmaul69E
        edmaul69 @jamesarm97
        last edited by

        @jamesarm97 can you post a pic of the controller so i can understand it? Google search shows nothing for dragonrise usb controller except for posts on retropie including this one.

        1 Reply Last reply Reply Quote 0
        • meleuM
          meleu @jamesarm97
          last edited by

          @jamesarm97 I think I've got what you're saying. And I think it's simple to solve. Let's consider that the rotated one is the player2, then your retroarch-joypads/DragonriseInc.GenericUSBJoystick.cfg will look like this:

          # ... some configs ...
          #input_up_axis = "-1"
          #input_down_axis = "+1"
          #input_left_axis = "-0"
          #input_right_axis = "+0"
          
          input_player1_up_axis = "-1"
          input_player1_down_axis = "+1"
          input_player1_left_axis = "-0"
          input_player1_right_axis = "+0"
          
          input_player2_up_axis = "-0"
          input_player2_down_axis = "+0"
          input_player2_left_axis = "-1"
          input_player2_right_axis = "+1"
          
          # ... remaining configs ...
          

          I mean, you have to hardcode the rotated axis for the player2. I'm not sure if these numbers will work for you, but I hope you get what I'm trying to say. ;-)

          Cheers!

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          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.