• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Daphne . Arcade joystick orientation wrong.

Scheduled Pinned Locked Moved Help and Support
daphnedaphne controll
164 Posts 28 Posters 42.8k 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.
  • S
    shift
    last edited by 8 Mar 2020, 16:58

    @grant2258 said in Daphne . Arcade joystick orientation wrong.:

    The dragon rise controller is in analog mode by default not digital. Im not sure what your saying here are you using a digital only controller encoder or a dragon rise?

    First of all, thanks for the reply. I am using an Arcade Stick mapped to a Dragonrise encoder. I think the "problem" is here: src/io/ input.cpp because I understand that only the first 10 keys are mapped, that is from [1] to [10]. Unfortunately many controllers, even if they have less than 10 keys, the first 10 are not necessarily mapped, in fact, in my case, even if I only have 8 keys, if I use jstest the buttons are: 0, 1, 6, 7, 8, 9, 10, 11 which are then translated by the daphne into: 1, 2, 7, 8, 9, 10, 11, 12. Here, buttons 11 and 12 are not considered absolutations from the dapinput.ini file. If you could modify the package to ensure that the system can see at least 12 keys it would be possible to map the controllers that use the dragonrise encoder.

    1 Reply Last reply Reply Quote 0
    • G
      grant2258 Banned
      last edited by 9 Mar 2020, 15:19

      Well the standalone package has mapping issues I did fix that and it works for the dragon rise on my repo. Like I said before the dragon rise defaults to analog mode and daphne directions work fine. The 10 buttons is plent to map the rest of the keys

      1 Reply Last reply Reply Quote 0
      • S
        shift
        last edited by 9 Mar 2020, 22:34

        The analog stick (which was the main problem) with your package works very well. But, as I said, the buttons are correctly mapped up to the number 10, with this I mean that even if I have 8 buttons to map, but 2 of them are seen by jstest as button11 and button12, in the dapinput.ini file, the latter two buttons are not even considered and therefore cannot be mapped.

        1 Reply Last reply Reply Quote 0
        • G
          grant2258 Banned
          last edited by grant2258 3 Oct 2020, 14:04 10 Mar 2020, 13:35

          Thats not how its works do you have 18 entries in your dinput file ? you pick the button you want to use in the dinput if you do need more than ten let me know.

          edit added up to 18 buttons on the repo for you. I dont see why anyone would set them all on there controller but its done. Just add any extra button defines to your dainput.(youll need to recompile though)

          ...
          "KEY_UP", "KEY_LEFT", "KEY_DOWN", "KEY_RIGHT", "KEY_START1", "KEY_START2", "KEY_BUTTON1",
          "KEY_BUTTON2", "KEY_BUTTON3", "KEY_COIN1", "KEY_COIN2", "KEY_SKILL1", "KEY_SKILL2",
          "KEY_SKILL3", "KEY_SERVICE", "KEY_TEST", "KEY_RESET", "KEY_SCREENSHOT", "KEY_QUIT", "KEY_PAUSE",
          "KEY_CONSOLE", "KEY_TILT"
          ...

          is all the button names that can be set currently any 10 can be changed it changed to 18 for you now. I did at one point change the joystick buttons to match the joystick number but had to put it back the way it was for the retropie script that creates the input file

          S 1 Reply Last reply 27 May 2020, 12:10 Reply Quote 1
          • _
            _robert1243
            last edited by 10 Mar 2020, 16:29

            I had that with the exact same controller.
            I'd try switching the connectors around to the expected orientation. That worked for me.

            1 Reply Last reply Reply Quote 0
            • S
              superdan
              last edited by 22 Mar 2020, 20:25

              Hi all!
              My situation with original Daphne RetropPie setup
              Joy directions wrong ( i die even if the movement is correct)
              Button 1 Correct

              So.
              @grant2258 i followed these steps:

              1 unistalled Daphne at all
              2 sudo nano pico /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh
              3 replaced RetroPie with grant2258 ( gitPullOrClone "$md_build" https://github.com/grant2258/daphne-emu.git retropie )
              4 Re-Installed Daphnefrom source
              

              My dapinput.ini is

              # Daphne cutom keyboard and joystick mapping
              #
              # Each input is mapped to 2 keyboard keys and one joystick button.
              # A joystick's first analog stick is also automatically mapped.
              #
              # The first two numbers are SDL keyboard codes (or 0 for "none")
              # Find keyboard codes here:
              # http://www.daphne-emu.com/mediawiki/index.php/KeyList
              #
              # The third number is the joystick button code (or 0 for "none")
              # Since 0 is reserved for special meaning, joystick button 0 is identified
              # as 1 here.  Button 1 is identified as 2, and so on.
              # 
              # Find the button you want to map by running:
              # jstest /dev/input/js0
              
              [KEYBOARD]
              KEY_UP = 273 114 24
              KEY_DOWN = 274 102 24
              KEY_LEFT = 276 100 24
              KEY_RIGHT = 275 103 24
              KEY_BUTTON1 = 306 97 24
              KEY_BUTTON2 = 308 115 24
              KEY_BUTTON3 = 32 113 joy start
              KEY_START1 = 49 0 10 42
              KEY_START2 = 50 0 42
              KEY_COIN1 = 53 0 joy coin
              KEY_COIN2 = 54 0 joy quit
              KEY_SKILL1 = 304 119 joy pause
              KEY_SKILL2 = 122 105 joy button1
              KEY_SKILL3 = 120 107 joy button2
              KEY_SERVICE = 57 0 joy button3
              KEY_TEST = 283 0 joy console
              KEY_RESET = 284 0 24
              KEY_SCREENSHOT = 293 0 24
              KEY_QUIT = 27 113 24
              END
              

              Now Joystick movements work like a charm BUT
              i lost my BUTTON 1 on my joystick
              so no action button at all
              My controller is seen as a general usb joystick.

              Any help?
              Thanks all

              1 Reply Last reply Reply Quote 0
              • G
                grant2258 Banned
                last edited by 22 Mar 2020, 23:54

                # The third number is the joystick button code (or 0 for "none")
                # Since 0 is reserved for special meaning, joystick button 0 is identified
                # as 1 here.  Button 1 is identified as 2, and so on.
                
                KEY_BUTTON1 = 306 97 1
                KEY_BUTTON2 = 308 115 2
                KEY_BUTTON3 = 32 113 3
                

                you will need to use jstest (add one to the value) for what button numbers you want to use for the function

                1 Reply Last reply Reply Quote 0
                • S
                  superdan
                  last edited by 23 Mar 2020, 13:49

                  @superdan said in Daphne . Arcade joystick orientation wrong.:

                  grant2258
                  GOT IT!
                  Thanks @grant2258 !!!!

                  1 Reply Last reply Reply Quote 1
                  • Z
                    zack06007
                    last edited by 26 May 2020, 08:02

                    Hello, I tried to understand the subject but I also have a left / right inversion. I was on retropie and I just changed to dragon's lair but with Batocera I have the same thing! I am new to trying to understand but what must be done to reverse orders. On my terminal (sticker: Dragon's lair) this is the only game I really want and I have been looking for weeks. I'm ready to cut the wires to reverse the order, that's to say Who can help me I will be grateful. thank you

                    https://zupimages.net/up/20/22/i7mz.png

                    For information my arcade machine: https://www.buzz-arcade.com/544-large_default/kit-stickers-borne.jpg

                    1 Reply Last reply Reply Quote 0
                    • S
                      shift @grant2258
                      last edited by 27 May 2020, 12:10

                      @grant2258 I forgot to thank you. Now it works perfectly! Thanks again!

                      1 Reply Last reply Reply Quote 1
                      • KrakatoaK
                        Krakatoa
                        last edited by Krakatoa 6 Oct 2020, 23:32 10 Jun 2020, 22:31

                        Joystick works perfect, but I can only get the coin button to work. This is my daphne.ini. Any tips?

                        [KEYBOARD]
                        KEY_UP = 273 114 24
                        KEY_DOWN = 274 102 24
                        KEY_LEFT = 276 100 24
                        KEY_RIGHT = 275 103 24
                        KEY_BUTTON1 = 306 97 5
                        KEY_BUTTON2 = 308 115 6
                        KEY_BUTTON3 = 32 113 7
                        KEY_START1 = 49 0 10 4
                        KEY_START2 = 50 0 42
                        KEY_COIN1 = 53 0 8
                        KEY_COIN2 = 54 0 0
                        KEY_SKILL1 = 304 119 0
                        KEY_SKILL2 = 122 105 0
                        KEY_SKILL3 = 120 107 0
                        KEY_SERVICE = 57 0 0
                        KEY_TEST = 283 0 0
                        KEY_RESET = 284 0 24
                        KEY_SCREENSHOT = 293 0 24
                        KEY_QUIT = 27 113 24
                        END

                        1 Reply Last reply Reply Quote 0
                        • T
                          tagnetti @beamquaker
                          last edited by 8 Nov 2020, 14:41

                          @beamquaker I am having the exact same issue on the exact same stick. It’s driving me mad been about 3 hours messing with this. Buttons no worries but the stick seems to work for only certain directions. Or I really suck worse than I thought at the game 😬

                          ClydeC 1 Reply Last reply 8 Nov 2020, 18:05 Reply Quote 0
                          • ClydeC
                            Clyde @tagnetti
                            last edited by 8 Nov 2020, 18:05

                            @tagnetti Does this happen only in Daphne or also in Emulation Station and other emulators?

                            If the latter and you have manually wired arcade joysticks, check the wiring. It has to be exactly the same for both sticks.

                            Besides that, you can check your joysticks in RetroPie's command console with the jstest command. For example:

                            jstest /dev/js0
                            

                            Replace the 0 with the joystick index of the stick you want to test. You can press the tab key two times quickly in succession after the js to get a list of all existing joystick numbers. Press Ctrl+c to stop the test, and enter exit to leave the console.

                            T 1 Reply Last reply 18 Nov 2020, 20:42 Reply Quote 0
                            • T
                              tagnetti @Clyde
                              last edited by 18 Nov 2020, 20:42

                              @clyde Thankyou. The problem only exists in Daphne. Everything else is perfect. It’s weird as when I try certain titles in Daphne it’s almost like left and right work like a button press left and right but don’t sustain any movement like moving a ship for example. Can’t wrap my mind around what could be causing that issue.

                              1 Reply Last reply Reply Quote 0
                              • ClydeC
                                Clyde
                                last edited by 18 Nov 2020, 22:49

                                @tagnetti I don't know if I misunderstand you, but as far as I know Daphne games (Dragon's Lair I + II and Space Ace), the player is expected to "tap" the stick in the right moment and direction, but not keep it for long in one direction. Maybe that's the problem?

                                Other than that, did you check Daphne's controls in the dainput.ini? See https://retropie.org.uk/docs/Daphne/#controls

                                AshpoolA 1 Reply Last reply 18 Nov 2020, 22:59 Reply Quote 0
                                • AshpoolA
                                  Ashpool @Clyde
                                  last edited by 18 Nov 2020, 22:59

                                  @clyde You're right for those games... but for others, like "astron belt", you are moving a sprite overlaying the laserdiscs video. So @tagnetti, we may need the info about what "certain titles" are meant...

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dabbler
                                    last edited by 3 Jan 2021, 16:53

                                    Apologies for dragging an old thread up. I came across this while searching for solutions to my DragonRise not working in Daphne.

                                    Thanks to @grant2258 , using your modified/fixed daphne - the controls work just fine - super.

                                    However, it appears Daphne has recently been updated (Retro pie source) by @pjft to support :

                                    Badlands
                                    Begas Battle
                                    Road Blaster

                                    So Ive moved to the offical source build, and of cource, my controls stop working. Would be great to have the best of both worlds, will @grant2258 's changes ever be included in the official source, or could the latest offical source be modified to inlucde these must have changes?

                                    Many thanks for all your help and to all those involved

                                    pjftP 1 Reply Last reply 3 Jan 2021, 17:52 Reply Quote 0
                                    • pjftP
                                      pjft @dabbler
                                      last edited by 3 Jan 2021, 17:52

                                      @dabbler you may try to compile and install it from my RetroPie branch, that I used to develop those changes while keeping Grant's control patches:

                                      https://github.com/pjft/daphne-emu/commits/retropie

                                      Probably the easiest way is to edit the Daphne RetroPie Setup script to retrieve the code from my repository and branch, and compile from source.

                                      I could consider pushing it upstream to RetroPie but I'm always hesitant of doing so with other people's code (in the case, Grant's changes), out of consideration for their authorship but he is unlikely to do so on his own by now...

                                      Note taken. Thanks and a happy new year.

                                      D 1 Reply Last reply 4 Jan 2021, 09:21 Reply Quote 0
                                      • D
                                        dabbler @pjft
                                        last edited by 4 Jan 2021, 09:21

                                        @pjft said in Daphne . Arcade joystick orientation wrong.:

                                        https://github.com/pjft/daphne-emu/commits/retropie

                                        Thanks, sounds like a good plan - my linux knowledge is lacking, im doing the following:

                                        cd /home/pi/RetroPie-Setup/
                                        sudo ./retropie_packages.sh daphne clean
                                        sudo git clone https://github.com/pjft/daphne-emu/ tmp/build/daphne
                                        sudo ./retropie_packages.sh daphne depends
                                        sudo ./retropie_packages.sh daphne build
                                        sudo ./retropie_packages.sh daphne install
                                        sudo ./retropie_packages.sh daphne configure

                                        However it fails on the install line (.bin not found), are you able to help please?

                                        Thanks so much!

                                        pjftP 1 Reply Last reply 4 Jan 2021, 09:27 Reply Quote 0
                                        • pjftP
                                          pjft @dabbler
                                          last edited by 4 Jan 2021, 09:27

                                          @dabbler Well, that's already quite more than what I'd expect from someone lacking Linux knowledge :D

                                          I believe that you'd need to check out the "retropie" branch on my end, so:

                                          sudo git clone https://github.com/pjft/daphne-emu/ tmp/build/daphne
                                          cd tmp/build/daphne
                                          sudo git checkout retropie
                                          cd /home/pi/RetroPie-Setup/
                                          

                                          and then the rest.

                                          D 1 Reply Last reply 4 Jan 2021, 09:35 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.

                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]