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 44.2k 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.
    • G
      grant2258 Banned
      last edited by grant2258

      -1 and 0 use a default setting if there is any set and there was with the original code.

      the original code does this

      val3 = atoi(sval1.c_str());
      if (val3 > 0) joystick_buttons_map[val3 - 1] = i;

      it subtracts 1 to set the button to what it should be the only reason this happened is because atoi(sval1.c_str()); doesnt work with negative numbers. I just added a negative number search an if its set to negative use defaults.

      if you leave nothing set on mine (-1) the default joystick buttons (mine is unset) no default joystick button maps are set.

      the keys are fine on both will always use defaults but things change for the defaults on the original code it has some hard codes for the joystick .

      a fix for now would be set all your buttons to say number 24 a button you would never use any number it doesnt matter and the set the buttons up you want to use (only the joystick to not get any random problems joystick button problems.

      The miss understanding here is that it was assumed 0 unset the the joystick it didnt it used the defaults set in the original code for the gpx32

      to

      mediamogulM 1 Reply Last reply Reply Quote 1
      • mediamogulM
        mediamogul Global Moderator @grant2258
        last edited by mediamogul

        @grant2258

        Very interesting. It's really nice to see Daphne being worked on. It's got a very active community, but development itself seems to have slowed down somewhat over the past few years. Your work is much appreciated.

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        1 Reply Last reply Reply Quote 1
        • G
          grant2258 Banned
          last edited by

          well at the end of the day its up the the guys at retropie if its included or not but if you scower the forums youll see its an issue

          1 Reply Last reply Reply Quote 0
          • G
            grant2258 Banned @beamquaker
            last edited by grant2258

            @beamquaker

            all you do to install it is type this in the command line. I had the path wrong fixed now
            i had
            sudo cp daphne.bin dapinput.ini /opt/retropie/emulators/
            should have been
            sudo cp daphne.bin dapinput.ini /opt/retropie/emulators/daphne/

            just type this all in and its done yes set all your buttons to what you want them to be

            git clone --recursive --depth 1 --branch 1449 "https://github.com/grant2258/daphne-emu.git"
            cd daphne-emu/
            sudo cp daphne.bin dapinput.ini /opt/retropie/emulators/daphne/

            md5sum /opt/retropie/emulators/daphne/daphne.bin

            1 Reply Last reply Reply Quote 0
            • G
              grant2258 Banned
              last edited by

              made it easier for you to try mate its the best i can do

              git clone --recursive --depth 1 --branch 1449 "https://github.com/grant2258/daphne-emu.git"
              cd daphne-emu/
              ./install.sh

              B 1 Reply Last reply Reply Quote 0
              • B
                beamquaker @grant2258
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • B
                  beamquaker
                  last edited by

                  You have fixed the joystick . That is incredible. I'm having major problems mapping my buttons . What am i doing wrong . Thanks you so much .

                  #KEY_UP = 273 114 1
                  #KEY_LEFT = 276 100 0
                  #KEY_DOWN = 274 102 1
                  #KEY_RIGHT = 275 103 0
                  #KEY_START1 = 049 000 6
                  #KEY_START2 = 050 000 -1
                  #KEY_BUTTON1 = 306 097 5
                  #KEY_BUTTON2 = 308 115 3
                  #KEY_BUTTON3 = 032 113 2
                  #KEY_COIN1 = 053 000 4
                  #KEY_COIN2 = 054 000 -1
                  #KEY_SKILL1 = 304 119 -1
                  #KEY_SKILL2 = 122 105 -1
                  #KEY_SKILL3 = 120 107 -1
                  #KEY_SERVICE = 057 000 -1
                  #KEY_TEST = 283 000 -1
                  #KEY_RESET = 284 000 -1
                  #KEY_SCREENSHOT = 293 000 -1
                  #KEY_QUIT = 027 113 7
                  #KEY_PAUSE = -1 -1 -1
                  #KEY_CONSOLE = -1 -1 -1
                  #KEY_TILT = -1 -1 -1

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    beamquaker @beamquaker
                    last edited by

                    @beamquaker if I leave it at your default I have button 1 and 2 automatically mapped and exit . I have to put money in and start the game using keyboard controls. Once in game the controls are perfect. I used jstest and entered the buttons numbers that corresponded with the buttons I wanted to use. None of the buttons work that I tried to map . Thanks

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      grant2258 Banned @beamquaker
                      last edited by grant2258

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

                      ect. I us

                      read what that text says anything with a # is ignored scroll right to the bottom thats where they keys are set i added all that stuff for information

                      look here
                      https://github.com/grant2258/daphne-emu/blob/1449/dapinput.ini#L60

                      scroll to the bottom youll see my default settings dont put any # after [KEYBOARD] that will cause problems and if you want to take the other stuff away leave at least one # statement before [KEYBOARD] below is a example take away any key names you dont want to set . If you have any problems ext the emulator post your config and any messages you think are relevant from.

                      less /dev/shm/runcommand.log

                      #myconfig
                      [KEYBOARD]
                      KEY_START1 = -1 -1 8
                      KEY_BUTTON1 = -1 -1 0
                      KEY_BUTTON2 = -1 -1 1
                      KEY_BUTTON3 = -1 -1 2
                      KEY_COIN1 = -1 -1 9
                      KEY_SKILL1 = -1 -1 4
                      KEY_SKILL2 = -1 -1 5
                      KEY_SKILL3 = -1 -1 6
                      KEY_QUIT = -1 -1 7

                      B 1 Reply Last reply Reply Quote 1
                      • B
                        beamquaker @grant2258
                        last edited by

                        @grant2258 sorry I never read that. You are a genius . It's completely fixed . I mapped them no problem . It moves diagonally to on every direction. Surely the Daphne project will makes this an official update . Thank you so much

                        G 1 Reply Last reply Reply Quote 0
                        • G
                          grant2258 Banned @beamquaker
                          last edited by

                          @beamquaker

                          no thank you i never even knew about this emulator and the issue annoyed me so i took it upon myself to fix it

                          B 1 Reply Last reply Reply Quote 1
                          • B
                            beamquaker @grant2258
                            last edited by

                            @grant2258 alot of people are asking about this on you tube videos . So it's clearly a massive problem that you sorted in 8 days . And plus it's the first time you have even used the emulator. I posted on you tube and gave a link to this discussion.

                            1 Reply Last reply Reply Quote 0
                            • G
                              grant2258 Banned
                              last edited by

                              well retroipe refused the commit the said there is nothing wrong it

                              1 Reply Last reply Reply Quote 0
                              • ShakzS
                                Shakz
                                last edited by Shakz

                                @grant2258 Howdy Friend,
                                To be fair I am having a tough time understanding exactly what the change is and why it is needed. I promise I am not being ugly here. Really trying to understand.
                                So you are setting keys you want ignored to negative values?
                                I assume anything you want mapped to the joystick would need to be jtest value +1
                                What are the negative values for?
                                Thanks for your work on this. Mapping does suck for daphne...bigtime.

                                RetroPie tips, tricks, and tweaks: https://www.youtube.com/eazyhax

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  beamquaker @Shakz
                                  last edited by

                                  @shakz my arcade dragon ryse joystick would not work in Daphne . After grant2258 patched it my joysticks worked perfect and I could map the buttons using the corresponding numbers instead of the +1 . I'm incredibly happy now as I can play dragon's lair 2 and Mach 3 perfectly. When I had this problem I found some comments on the internet of other people having the same problem with the dragon ryse joysticks and Daphne.

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    grant2258 Banned
                                    last edited by grant2258

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

                                    Thanks for your work on this. Mapping

                                    i posted some info on the github page hope that helps im really having with github though i think im getting there. We can talk on github about this i clarify anything you need to know and will make sure the code doesnt mess with the numbering .system. that was just something i wanted to change for myself ans doesnt have to be done

                                    G 1 Reply Last reply Reply Quote 1
                                    • G
                                      grant2258 Banned @grant2258
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 1
                                      • G
                                        grant2258 Banned
                                        last edited by grant2258

                                        its all done and fixed all you have to do is accept the pull request. It fixes the analog joystick axis and the extra buttons not getting mapped. i know i see the button 10 buttons thing its intentional i was testing for when you tried to set more buttons that we setup in the code .

                                        pico /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.sh

                                        change
                                        https://github.com/RetroPie/daphne-emu.git
                                        to
                                        https://github.com/grant2258/daphne-emu.git

                                        just replace RetroPie with grant2258

                                        then run retropie setup -> manage packages->optional->daphane->update from source if yout having troubles this will get you going

                                        less /dev/shm/runcommand.log
                                        Parameters:
                                        Executing: /opt/retropie/emulators/daphne/daphne.sh "/home/pi/RetroPie/roms/daphne/lair2.daphne"
                                        ls: cannot access /proc/kcore: No such file or directory
                                        --DAPHNE version 1.0.13
                                        --Command line is: /opt/retropie/emulators/daphne/daphne.bin lair2 vldp -nohwaccel -framefile /home/pi/RetroPie/roms/daphne/lair2.daphne/lair2.txt -homedir /opt/retropi
                                        e/emulators/daphne -fullscreen -nocrc -noissues -nolog -noserversend -latency 950 -x 640 -y 480 -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20
                                        --CPU : UnknownCPU 0 MHz || Mem : 0 megs
                                        --OS : Linux 4.9 || Video : Unknown video
                                        --OpenGL: Compiled In
                                        --RGB2YUV Function: C
                                        --Line Blending Function: C
                                        --Audio Mixing Function: C
                                        Setting alternate home dir:
                                        /opt/retropie/emulators/daphne
                                        Disabling ROM CRC check...
                                        Setting Search Latency to 950 milliseconds
                                        Setting screen width to 640
                                        Setting screen height to 480
                                        Set 640x480 at 32 bpp with flags: 20
                                        Initializing sound system ...
                                        Joystick #0 was successfully opened
                                        Remapping input ...
                                        sorry we only support 10 joystick buttons we could not map button 10 please check your dapinput.ini
                                        button:0 mapped to KEY_BUTTON3
                                        button:1 mapped to KEY_COIN1
                                        button:2 mapped to not set
                                        button:3 mapped to not set
                                        button:4 mapped to KEY_BUTTON1
                                        button:5 mapped to KEY_BUTTON2
                                        button:6 mapped to not set
                                        button:7 mapped to not set
                                        button:8 mapped to KEY_QUIT
                                        button:9 mapped to KEY_START1
                                        Loading compressed ROM image dl2_319.bin...65536 bytes read.
                                        Framefile parse succeeded. Video/Audio directory is: /home/pi/RetroPie/roms/daphne/lair2.daphne/./
                                        YUV overlay is done in software (ie unaccelerated).
                                        NOTE : RAM file /opt/retropie/emulators/daphne/ram/lair2_319.gz was not found (it'll be created)
                                        Play
                                        Booting ROM ...
                                        End of audio stream detected!
                                        WARNING : Unimplemented Sony LDP command received: 0xC
                                        Search to 722 received

                                        I 1 Reply Last reply Reply Quote 1
                                        • I
                                          itnv @grant2258
                                          last edited by

                                          @grant2258 Sorry to resurrect an old thread but I just finished building my machine and I'm having this same problem. I originally set up Daphne with a gamepad and it worked fine. But when I installed my Ultrastick 360 the joystick mapping is wrong. I updated daphne.sh to point to your github and ran the "Update from Source" but the mapping still isn't working. Any suggestions?

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            grant2258 Banned
                                            last edited by grant2258

                                            your joysticks probably oriented wrong plug it in windows and test on there in the control panel

                                            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.