Navigation

    Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    SOLVED Diagonals not working

    GamePad/GPIO/USB encoder
    diagonals
    2
    9
    3163
    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.
    • deepunder
      deepunder last edited by

      Hi,

      I've setup a 2P bartop arcade using raspberry Pi 3. I have sanwa 8 way joysticks connected to the GPIO pins.

      When I connect just a single joystick with the all of the buttons, the joystick functions correctly. However, when I connect the second joystick with the buttons diagonals on the first player stops working

      Diagonals in the up-right and down-left doesn't work but the other diagonals do on P1. On the P2 joystick, all directions function.

      I have swaped the pcb board over on the joysticks but that didn't fix it, I've remapped the joysticks no go.

      This issue was on 4.0.2 and 4.1.

      How can I get the diagonals working on the P1 joystick? (Left, right, up, down work BTW)

      Thanks

      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @deepunder last edited by

        @deepunder Hi

        I miss what is between the joysticks' wires and the pi, because I guess you haven't plugged your panel on the GPIO ?

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        deepunder 1 Reply Last reply Reply Quote 0
        • deepunder
          deepunder @Substring last edited by

          @Substring

          Hi,

          Both joysticks connect to raspberry Pi 3 GPIO pins directly. I'm not using a PAC2 board.

          Thanks

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @deepunder last edited by

            @deepunder on what are you relying to say diags don't work ? could you give a try to sdl2-jstest ?

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            deepunder 1 Reply Last reply Reply Quote 0
            • deepunder
              deepunder @Substring last edited by

              @Substring

              Hi

              I did the test. It registers up down left right and for the diagonals it registers up-left and down-right but not up-right or down-left

              Thanks

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @deepunder last edited by

                @deepunder on what have you done these tests ? does blade buster (a NES game shipped with recalbox) allow you to go in diagonals ?

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                deepunder 1 Reply Last reply Reply Quote 0
                • deepunder
                  deepunder @Substring last edited by

                  @Substring

                  hi I got it working now.

                  I moved the joystick cables onto different pins. i.e move the up wire to the left pin, moved the left pin on the down pin etc

                  I re-programmed my controller settings in emulation station. This resolved the issue.

                  all games in MAME and N64 didn't do the two sets of diagonals, very weird.

                  My only guess is that it didn't like certain axis configurations in emulationstation.

                  anyways, thanks for your effort and help substring

                  Substring 1 Reply Last reply Reply Quote 0
                  • Substring
                    Substring @deepunder last edited by

                    @deepunder Errrrr ... glad it works, but that's a misbehaviour while wiring your panel, laybe you didn't notice which switch are activated by the stick (usually on the opposite side of the direction). If you had to reconfigure your sticks in ES, then something was wrong and you didn't carefully follow our guides.

                    Former dev - Please reply with @substring so that i am notified when you answer me
                    Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                    deepunder 1 Reply Last reply Reply Quote 0
                    • deepunder
                      deepunder @Substring last edited by

                      @Substring

                      Nope it's odd. Before rewiring it, I did reconfigure it in EMU multiple times didn't work.

                      Not sure why moving the wires fixed it as the 4 main directions were working. Very odd

                      Thanks

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

                      Want to support us ?

                      61
                      Online

                      88.3k
                      Users

                      26.2k
                      Topics

                      179.8k
                      Posts

                      Copyright © 2021 recalbox.com