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

    Controller configuration per system and finding device index number.

    Scheduled Pinned Locked Moved Help and Support
    10 Posts 3 Posters 3.7k 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.
    • M
      matalog
      last edited by matalog

      In /opt/retropie/configs/all/retroarch.cfg it says

      Device IDs are found in libretro.h.

      Does anyone know where libretro.h is located?

      Is there a way i could have searched for this file? I tried,

      find / -name libretro.h -print but it said permission was denied on all results and then, i tried this logged in as root and it showed no results.

      Thanks for any help,

      Matt.

      1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators
        last edited by

        https://raw.githubusercontent.com/libretro/RetroArch/master/libretro-common/include/libretro.h

        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

        M 1 Reply Last reply Reply Quote 0
        • M
          matalog @BuZz
          last edited by

          @BuZz Do you know where is is located on a retropie 3.8 device?

          1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators
            last edited by

            It isn't - it's part of the source.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

            M 1 Reply Last reply Reply Quote 0
            • M
              matalog @BuZz
              last edited by

              @BuZz # Sets which libretro device is used for a user.

              Devices are indentified with a number.

              This is normally saved by the menu.

              Device IDs are found in libretro.h.

              These settings are overridden by explicit command-line arguments which refer to input devices.

              None: 0

              Joypad (RetroPad): 1

              Mouse: 2

              Keyboard: 3

              Generic Lightgun: 4

              Joypad w/ Analog (RetroPad + Analog sticks): 5

              Multitap (SNES specific): 257

              Super Scope (SNES specific): 260

              Justifier (SNES specific): 516

              Justifiers (SNES specific): 772

              So then, where it says device IDs above - it's not talking about controllers on my system?

              1 Reply Last reply Reply Quote 0
              • BuZzB
                BuZz administrators
                last edited by

                Please format your posts - see https://retropie.org.uk/forum/topic/3/read-this-first

                These are the ids used internally by retroarch afaik - perhaps it would just be easier to explain what you are trying to do ?

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                M 1 Reply Last reply Reply Quote 0
                • M
                  matalog @BuZz
                  last edited by

                  @BuZz

                  '# Sets which libretro device is used for a user.
                  '# Devices are indentified with a number.'
                  '# This is normally saved by the menu.
                  '# Device IDs are found in libretro.h.
                  '# These settings are overridden by explicit command-line arguments which refer to input devices.
                  '# None: 0
                  '# Joypad (RetroPad): 1
                  '# Mouse: 2
                  '# Keyboard: 3
                  '# Generic Lightgun: 4
                  '# Joypad w/ Analog (RetroPad + Analog sticks): 5
                  '# Multitap (SNES specific): 257
                  '# Super Scope (SNES specific): 260
                  '# Justifier (SNES specific): 516
                  '# Justifiers (SNES specific): 772

                  '# input_libretro_device_p1 =
                  '# input_libretro_device_p2 =
                  '# input_libretro_device_p3 =
                  '# input_libretro_device_p4 =
                  '# input_libretro_device_p5 =
                  '# input_libretro_device_p6 =
                  '# input_libretro_device_p7 =
                  '# input_libretro_device_p8 =

                  I read that and assumed that I could order the player number of my controllers. It does look like that's what it is suggesting.

                  I became sidetracked when i was searching to see if there is anyway to have a controller specific configuration per system - do you know if there is?

                  Matt.

                  herb_fargusH 1 Reply Last reply Reply Quote 0
                  • herb_fargusH
                    herb_fargus administrators @matalog
                    last edited by

                    @matalog in the documentation:

                    https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration

                    If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                    Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      matalog @herb_fargus
                      last edited by

                      @herb_fargus

                      That doesn't seem to have all the information required - it doesn't mention how to find your selected joypads index - do you know how?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        matalog @matalog
                        last edited by

                        @matalog

                        What i am looking to do is have my wii u pro controller use different x,y,a,b button number assignments from my ps3 pads - because they are numbered differently on the devices - both on the NES.

                        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.