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

    [Solved] Switching Pocketsnes To Pisnes Controller Trouble.

    Scheduled Pinned Locked Moved Help and Support
    21 Posts 2 Posters 6.0k 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.
    • BuZzB
      BuZz administrators
      last edited by

      also the path will be /opt/retropie/configs/snes/snes9x.cfg now - the other path did exist BTW, but you can't access it via windows shares - would need to SSH in. once you have updated you will be able to access it - via the configs share.

      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

      1 Reply Last reply Reply Quote 0
      • TheDutyPaidT
        TheDutyPaid
        last edited by

        Ok, I have now updated pisnes via RetroPie-Setup / Packages / Optional Packages and update pisnes from source

        Using Putty I get this when trying to access the file, my Linux skills are very basic.
        pi@retropie:~ $ /opt/retropie/configs/snes/snes9x.cfg
        -bash: /opt/retropie/configs/snes/snes9x.cfg: Permission denied

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

          you can edit it via windows share, or to edit via ssh you can use nano

          nano /opt/retropie/configs/snes/snes9x.cfg

          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

          TheDutyPaidT 1 Reply Last reply Reply Quote 0
          • TheDutyPaidT
            TheDutyPaid @BuZz
            last edited by BuZz

            @BuZz We are getting there, thank you for your help and patience.

            The file shows and when opened has. and can't find reference to how to map this to a PS3 controller.

            [Keyboard]
            # Get codes from /usr/include/SDL/SDL_keysym.h
            A_1=100
            B_1=99
            X_1=115
            Y_1=120
            L_1=97
            R_1=102
            START_1=13
            SELECT_1=9
            LEFT_1=276
            RIGHT_1=275
            UP_1=273
            DOWN_1=274
            QUIT=27
            ACCEL=8
            
            [Joystick]
            # Get codes from "jstest /dev/input/js0"
            # from package "joystick"
            # Defaults to XBOX 360 controller
            A_1=1
            B_1=0
            X_1=3
            Y_1=2
            L_1=4
            R_1=5
            START_1=7
            SELECT_1=6
            QUIT=99
            ACCEL=98
            QLOAD=10
            QSAVE=9
            #Joystick axis
            JA_LR=0
            JA_UD=1
            #Joystick DPAD buttons
            LEFT_1=11
            RIGHT_1=12
            UP_1=13
            DOWN_1=14
            #player 2 button configuration
            A_2=1
            B_2=0
            X_2=3
            Y_2=2
            L_2=4
            R_2=5
            START_2=7
            SELECT_2=6
            #Joystick axis
            JA_LR_2=0
            JA_UD_2=1
            #Joystick DPAD buttons
            LEFT_2=11
            RIGHT_2=12
            UP_2=13
            DOWN_2=14
            
            
            [Graphics]
            DisplaySmoothStretch=1
            # Display Effect: 0 none, 1 scanlines, 2 phospher
            # NOTE Phospher does not run at full speed
            DisplayEffect=0
            MaintainAspectRatio=1
            DisplayBorder=0
            AutoFrameskip=1
            Frameskip=200
            Transparency=1
            CPUCycles=100
            
            [Sound]
            APUEnabled=1
            # Sound rates below as index, i.e. 7=44100 (some of these produce static)
            # 0, 8192, 11025, 16000, 22050, 29300, 32000, 44100
            SoundPlaybackRate=7
            # Enable on RPI2 for clearer sound, disable on RPI1 due to performance impact
            InterpolatedSound=0
            

            Can't find reference to how to map this to a PS3 controller.

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

              When posting config/logs please use markdown to format them or use an external site like pastebin as detailed in https://retropie.org.uk/forum/topic/3/read-this-first

              (I will edit your post so it is readable)

              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

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

                To map it to a PS3 controller, you need the button IDs which can be found out with a tool like jstest as it mentioned in the config. TBH I think you would be best just to stick with pocketsnes which runs most stuff full speed on a RPI1. I don't have time to go into more detail I'm afraid and I don't think you will gain much from using this emulator.

                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

                TheDutyPaidT 1 Reply Last reply Reply Quote 0
                • TheDutyPaidT
                  TheDutyPaid @BuZz
                  last edited by TheDutyPaid

                  @BuZz I see

                  test
                  
                  1 Reply Last reply Reply Quote 0
                  • TheDutyPaidT
                    TheDutyPaid
                    last edited by

                    I have run jstest and have mapped out all the buttons and sticks

                    Can I write a new entry in the config file for the PS3 in the same format of the xbox 360.

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

                      @TheDutyPaid yep. Should be fine

                      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

                      TheDutyPaidT 1 Reply Last reply Reply Quote 1
                      • TheDutyPaidT
                        TheDutyPaid @BuZz
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • TheDutyPaidT
                          TheDutyPaid
                          last edited by TheDutyPaid

                          If any one needs it, here is the full working config for PS3 which you can copy paste into the snes9x.cfg file.
                          /opt/retropie/configs/snes/snes9x.cfg
                          It will replace the 360 pad layout and there is no player 2 but you can edit the file as you wish.

                          [Keyboard]
                          # Get codes from /usr/include/SDL/SDL_keysym.h
                          A_1=100
                          B_1=99
                          X_1=115
                          Y_1=120
                          L_1=97
                          R_1=102
                          START_1=13
                          SELECT_1=9
                          LEFT_1=276
                          RIGHT_1=275
                          UP_1=273
                          DOWN_1=274
                          QUIT=27
                          ACCEL=8
                          
                          [Joystick]
                          # Get codes from "jstest /dev/input/js0"
                          # from package "joystick"
                          # Quick save is on right analogue click
                          # Save is on R2
                          # Mapped to SNES layout for PS3 controller
                          # Quit is the PS button
                          # PS3
                          A_1=13
                          B_1=14
                          X_1=12
                          Y_1=15
                          L_1=10
                          R_1=11
                          START_1=3
                          SELECT_1=0
                          QUIT=16
                          ACCEL=98
                          QLOAD=2
                          QSAVE=9
                          #Joystick axis
                          JA_LR=0
                          JA_UD=1
                          #Joystick DPAD buttons
                          LEFT_1=7
                          RIGHT_1=5
                          UP_1=4
                          DOWN_1=6
                          
                          
                          
                          [Graphics]
                          DisplaySmoothStretch=1
                          # Display Effect: 0 none, 1 scanlines, 2 phospher
                          # NOTE Phospher does not run at full speed
                          DisplayEffect=0
                          MaintainAspectRatio=1
                          DisplayBorder=0
                          AutoFrameskip=1
                          Frameskip=200
                          Transparency=1
                          CPUCycles=100
                          
                          [Sound]
                          APUEnabled=1
                          # Sound rates below as index, i.e. 7=44100 (some of these produce static)
                          # 0, 8192, 11025, 16000, 22050, 29300, 32000, 44100
                          SoundPlaybackRate=7
                          # Enable on RPI2 for clearer sound, disable on RPI1 due to performance impact
                          InterpolatedSound=0
                          

                          Thanks to BuZz getting this all working.

                          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.