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

    Problem with 1 legit ps3 controller and not another

    Scheduled Pinned Locked Moved Help and Support
    ps3 driversixaxisbluetoothbluetooth.servi
    30 Posts 3 Posters 2.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.
    • EfriimE
      Efriim @edmaul69
      last edited by Efriim

      @edmaul69
      To take the fun out of what was posted, here is the executable binary that was made from parts of the SDL code. It is explained better in the link.

      edmaul69E 4 Replies Last reply Reply Quote 0
      • edmaul69E
        edmaul69 @Efriim
        last edited by

        @Efriim thanks.

        1 Reply Last reply Reply Quote 0
        • edmaul69E
          edmaul69 @Efriim
          last edited by edmaul69

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • edmaul69E
            edmaul69 @Efriim
            last edited by edmaul69

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @Efriim
              last edited by edmaul69

              @Efriim ok there is something im not getting. The second answer says compile with

              gcc -o sdl2-joystick sdl2-joystick.c `pkg-config ––libs ––cflags sdl2`
              

              Then it says save following as sdl2-joystick.c..... So i stuck this in /home/pi and compiled. Now what?

              EfriimE 1 Reply Last reply Reply Quote 0
              • EfriimE
                Efriim @edmaul69
                last edited by

                @edmaul69
                Save the file sdl2-joystick.c with the c code copied to it. Then compile it with gcc.

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

                  @Efriim i did that. I dont know what to do after that to get the guid.

                  EfriimE 1 Reply Last reply Reply Quote 0
                  • EfriimE
                    Efriim @edmaul69
                    last edited by

                    @edmaul69
                    After the code is compiled; with a controller plugged in; run the executable ./sdl2-joystick.

                    If there is no controller plugged in there won't be any output

                    edmaul69E 1 Reply Last reply Reply Quote 0
                    • edmaul69E
                      edmaul69 @Efriim
                      last edited by

                      @Efriim luckily i dont have to run anything. i found out all the controllers you have plugged in shows their guid in the es_input.cfg file. thanks for all the help.

                      EfriimE 1 Reply Last reply Reply Quote 0
                      • EfriimE
                        Efriim @edmaul69
                        last edited by

                        @edmaul69
                        the output looks like this

                        050000004c0500006802000000810000 "Sony PLAYSTATION(R)3 Controller" axes:6 buttons:17 hats:0 balls:0
                        

                        where the first segment is the GUID

                        1 Reply Last reply Reply Quote 0
                        • edmaul69E
                          edmaul69 @Efriim
                          last edited by edmaul69

                          @Efriim so running ./sdl-joystick i come up with this for the dolphinbar:

                          03000000790000000318000011010000 "HJZ Mayflash Wiimote PC Adapter" axes:4 button                                                                                                             s:12 hats:1 balls:0
                          

                          so this and another mayflash wii adapter i have when i add them to the gamecontrollerdb.txt, the hats dont work. i set the hats exactly like other hats in the file. not sure if i am doing something wrong. i removed the second analog stick do to the c64 mini emulator duplicating the sticks.

                          03000000790000000318000011010000,HJZ Mayflash Wiimote PC Adapter,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b1,guide:b11,platform:Linux,
                          
                          EfriimE 1 Reply Last reply Reply Quote 0
                          • EfriimE
                            Efriim @edmaul69
                            last edited by

                            @edmaul69 I haven't looked at gamecontrollerdb.txt since I back when I used lakka. I got to take a nap though but I'll get back on to this, maybe you gotta look deeper in the system

                            edmaul69E 1 Reply Last reply Reply Quote 1
                            • edmaul69E
                              edmaul69 @Efriim
                              last edited by

                              @Efriim cool. Just let me know your thoughts. Thank you.

                              EfriimE 1 Reply Last reply Reply Quote 0
                              • EfriimE
                                Efriim @edmaul69
                                last edited by Efriim

                                @edmaul69
                                I only searched for that controller and found some dated stuff, I mean the patch might already be applied.
                                https://bugzilla.kernel.org/show_bug.cgi?id=115841

                                I think it says that there was a patch applied to the kernel modules so that the dolphin bar will map this button correctly, when using dolphin bar mode 3. I also see a line that you could add to the kernel cmdline.txt that is something like the same fix.

                                Does the nintendo mayflash adapter use a different name than the dolphinbar?

                                edmaul69E 1 Reply Last reply Reply Quote 0
                                • edmaul69E
                                  edmaul69 @Efriim
                                  last edited by

                                  @Efriim that is what it is sold as. What is listed above is the name it is seen as in linux.

                                  HJZ Mayflash Wiimote PC Adapter

                                  EfriimE 1 Reply Last reply Reply Quote 0
                                  • EfriimE
                                    Efriim @edmaul69
                                    last edited by

                                    @edmaul69
                                    Oh, I was thinking you had both the adpater and the dolphin bar.

                                    edmaul69E EfriimE 2 Replies Last reply Reply Quote 0
                                    • edmaul69E
                                      edmaul69 @Efriim
                                      last edited by

                                      @Efriim i have another wii classic controller adapter made by mayflash that has the same issue.

                                      1 Reply Last reply Reply Quote 0
                                      • EfriimE
                                        Efriim @Efriim
                                        last edited by Efriim

                                        @Efriim
                                        extracted from the bugzilla link there is this
                                        usbhid.quirks=0x79:0x1843:0x40
                                        that can be added to the /boot/cmdline.txt

                                        for the adapter where I think you will replace the 0x79:0x1843:0x40
                                        with the vendor:product id of yours, I don't know what the third number is (0x40)
                                        usbhid.quirks=0x79:0x1803:0x40
                                        it could be worth a try,
                                        `evtest event4 |grep -E "ID|Test|BTN|ABS"
                                        will give the product ID vendor ID.

                                        SDL only reads the gamecontrollerdb.txt

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

                                          @Efriim awesome. Thanks.

                                          1 Reply Last reply Reply Quote 0
                                          • edmaul69E
                                            edmaul69 @Efriim
                                            last edited by edmaul69

                                            @Efriim well thec64 mini doesnt even have a boot folder or 99.9% of linux in it. They made that thing absolutely bare bones as possible. I did discover that the ppsspp emulator on the pi uses a gamecontrollerdb.txt. I added theMayflash adapter to the gamescontrollerdb.txt and then tested in the emulator and the hats work fine. So i am not sure what the c64 mini’s problem is. I do however have a raphnet chip for wii classic controllers that i can solder up the wires to tomorrow to see if that one is 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.