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

      i made a mess of my github ive made the the github again. Ill leave that repository as it is until i know what im doing with github. just let me know if its not working if it isint we can take it from there

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

        @grant2258 I couldn't connect to your github URL unfortunately. I followed the instructions but had to change it back when it wouldn't connect. Sorry

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

          ive been working on git gub its not the easiest thing if

          sudo git clone --recursive --depth 1 --branch testing "https://github.com/grant2258/daphne-emu.git"
          works you must have typed something wrogn in prevous instructions

          basically your just changing RetroPie to grant2258
          and small retropie to testing.

          ok forgot to say above install from source not binary

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

            @grant2258 I got connected to your github and it starts to install from source but I get (/home/pi/retropie-setup/tmp/build/Daphne/daphne.bin not found). It tells me where to find the error files next. It says all that but Daphne boots the games up no problem. I haven't tried to change the buttons yet. The joystick is still the same. I'm assuming I can get updates from you now as you update the project.

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

              i have to do it all over again github had messed all my files up. It isisnt a lot of work to be fair i just dont know how to use github it fustrating

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

                @beamquaker I'll wait until you have it sorted . At least you are trying to sort out the problems. I wish I could code . I don't even know where to begin.

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

                  by not using github lol

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

                    ok the commits been posted i dont know if they will accept it was really annoying them with me messing up in git hub. All i can do is appoligise for that. Grab the emulator for now if you want it working specially the joystick :) and buttons too of course thats was the main problem.

                    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/

                    https://github.com/RetroPie/daphne-emu/compare/retropie...grant2258:retropie

                    too see whats been patched

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

                      @grant2258 do I just install it again from source using your github URL that I already have. I'm assuming i will have to map my own buttons as by default nothing will be mapped. Just change -1 to whatever button I want.

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

                        well nothing should be mappped in the joystick buttons anyway unless you map it button wise. no need to set them all to -1 just set the ones you want to use like coin start1 and button 1. that branch just has my bin with my changed fixes nothing else is in it

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

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

                          no need to set them all to -1

                          Originally, I believe Daphne used '0' as sort of a stand-in for a nul entry, making the +1 to all button codes a requirement. With your changes, if a particular map entry is not assigned, is it simply to be left blank, or is there a replacement for '0'?

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

                          1 Reply Last reply Reply Quote 0
                          • 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
                                            • 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.