• 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

Cobra Command on Daphne Joystick Orientation

Scheduled Pinned Locked Moved Help and Support
daphne config
17 Posts 3 Posters 883 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.
  • R
    Retro Arcade Fan
    last edited by 16 Jan 2023, 18:37

    Is anyone aware of a way to change the joystick orientation for Cobra Command on the Daphne emulator? Right now joystick up is down and down is up. Hitting F2 brings up the self test menu, but I don't see any options there. Of course retroarch is not accessible. I've looked in the files in the directory and not seeing any options. I only want to change Cobra Command and not the entire emulator.

    Any advice is appreciated. Thank you.

    W 1 Reply Last reply 16 Jan 2023, 19:58 Reply Quote 0
    • W
      Wampa @Retro Arcade Fan
      last edited by 16 Jan 2023, 19:58

      @Retro-Arcade-Fan

      Not with Daphne, but in Hypseus you can redefine the axis directions:

      https://github.com/DirtBagXon/hypseus-singe/blob/master/doc/flightkey.ini

      Create a separate config file for flight based games and load that with the -keymapfile in the .commands file, per game.

      R 2 Replies Last reply 16 Jan 2023, 20:53 Reply Quote 0
      • R
        Retro Arcade Fan @Wampa
        last edited by 16 Jan 2023, 20:53

        @Wampa I'll look into that. Thank you!

        1 Reply Last reply Reply Quote 0
        • R
          Retro Arcade Fan @Wampa
          last edited by 17 Jan 2023, 00:03

          @Wampa I want to make sure I understand correctly. Probably going to need more clarification.

          You want me to add the -keymapfile line to the cobraab.commands file. Then place the flightkey.ini file in the cobraab.daphne folder?

          D 1 Reply Last reply 17 Jan 2023, 13:16 Reply Quote 0
          • D
            DirtBagXon @Retro Arcade Fan
            last edited by 17 Jan 2023, 13:16

            @Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:

            You want me to add the -keymapfile line to the cobraab.commands file. Then place the flightkey.ini file in the cobraab.daphne folder?

            The simplest method to add a second config file in RetroPie would be as follows:

            1. Add the new config file to the daphne config folder, alongside the other config files (hypinput.ini ) etc:
            /opt/retropie/configs/daphne/flightkey.ini
            
            1. You then need to link this new config file from the CONF ($md_conf_root) to the HOME ($md_inst) directory of the emulator:
            sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini
            
            1. Then you just need to define the new config in the .commands file for the game, so in your case cobraab.commands in the cobraab.daphne folder. The syntax for this filename would be:
            -keymapfile flightkey.ini
            

             

            Hypseus Singe for RetroPie: https://github.com/DirtBagXon/hypseus-singe
            Hypseus Singe Games: https://github.com/DirtBagXon/hypseus_singe_data
            Hypseus Discord: https://discord.gg/dgCsCfmRfJ

            W R 2 Replies Last reply 17 Jan 2023, 14:36 Reply Quote 0
            • W
              Wampa @DirtBagXon
              last edited by 17 Jan 2023, 14:36

              Yeah that's pretty much what I did.

              1 Reply Last reply Reply Quote 0
              • R
                Retro Arcade Fan @DirtBagXon
                last edited by 17 Jan 2023, 15:08

                @Wampa @DirtBagXon said in Cobra Command on Daphne Joystick Orientation:

                -keymapfile flightkey.ini

                Unfortunately still not working. I copied the flightkey.ini file and placed it in the stated folder. I executed the command in line 2. I edited the flightkey.ini file and replaced the first two lines under keyboard with the ones below to reverse the joystick up and down. I edited the cobraab.commands file and added -keymapfile flightkey.ini to the end (complete command line below)

                -nocrc -noissues -nolog -noserversend -latency 950 -x 1920 -y 1080 -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -bank 0 00000000 -bank 1 01000000 -keymapfile flightkey.ini

                Still not working. Joystick is still reversed and credit, start and shoot buttons do nothing.

                W 1 Reply Last reply 17 Jan 2023, 15:33 Reply Quote 0
                • W
                  Wampa @Retro Arcade Fan
                  last edited by Wampa 17 Jan 2023, 15:33

                  @Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:

                  Still not working. Joystick is still reversed and credit, start and shoot buttons do nothing.

                  Did you actually configure the file to your controller?

                  You have Daphne working? What does the dapinput.ini file look like?

                  What does filghtkey.ini look like ?

                  "I edited the flightkey.ini file and replaced the first two lines under keyboard with the ones below to reverse the joystick up and down."

                  This sounds like you changed the axis back to original values, the flightkey.ini file you copied already has them reversed, if that is what you copied?

                  R 1 Reply Last reply 17 Jan 2023, 16:12 Reply Quote 0
                  • R
                    Retro Arcade Fan @Wampa
                    last edited by 17 Jan 2023, 16:12

                    @Wampa ah, I wasn't aware the flightkey.ini file was already reversed. Thank you. The joystick is working perfectly now. (yes the game works in Daphne minus the joystick being reversed). The last remaining problem I have now is the game won't shoot.

                    I've tried the flightkey.ini default

                    KEY_UP = SDLK_DOWN 0 0 +002
                    KEY_DOWN = SDLK_UP 0 0 -002
                    KEY_LEFT = SDLK_LEFT 0 0 -001
                    KEY_RIGHT = SDLK_RIGHT 0 0 +001
                    KEY_COIN1 = SDLK_5 0 0
                    KEY_COIN2 = SDLK_6 0 0
                    KEY_START1 = SDLK_1 0 0
                    KEY_START2 = SDLK_2 0 0
                    KEY_BUTTON1 = SDLK_LCTRL 0 0
                    KEY_BUTTON2 = SDLK_LALT 0 0
                    KEY_BUTTON3 = SDLK_SPACE 0 0
                    KEY_SKILL1 = SDLK_LSHIFT 0 0
                    KEY_SKILL2 = SDLK_z 0 0
                    KEY_SKILL3 = SDLK_x 0 0
                    KEY_SERVICE = SDLK_9 0 0
                    KEY_TEST = SDLK_F2 0 0
                    KEY_RESET = SDLK_0 0 0
                    KEY_SCREENSHOT = SDLK_F12 0 0
                    KEY_QUIT = SDLK_ESCAPE 0 0
                    KEY_PAUSE = SDLK_p 0 0
                    KEY_CONSOLE = SDLK_BACKSLASH 0 0
                    KEY_TILT = SDLK_t 0 0

                    and the hypinput.ini default

                    KEY_UP = SDLK_DOWN 0 0 +002
                    KEY_DOWN = SDLK_UP 0 0 -002
                    KEY_COIN1 = SDLK_5 0 1
                    KEY_COIN2 = SDLK_6 0 0
                    KEY_START1 = SDLK_1 0 4
                    KEY_START2 = SDLK_2 0 0
                    KEY_BUTTON1 = SDLK_LCTRL SDLK_a 14
                    KEY_BUTTON2 = SDLK_LALT SDLK_s 15
                    KEY_BUTTON3 = SDLK_SPACE SDLK_d 16
                    KEY_SKILL1 = SDLK_LSHIFT SDLK_w 0
                    KEY_SKILL2 = SDLK_z SDLK_i 0
                    KEY_SKILL3 = SDLK_x SDLK_k 0
                    KEY_SERVICE = SDLK_9 0 0
                    KEY_TEST = SDLK_F2 0 0
                    KEY_RESET = SDLK_0 0 0
                    KEY_SCREENSHOT = SDLK_F12 0 0
                    KEY_QUIT = SDLK_ESCAPE SDLK_q 17
                    KEY_PAUSE = SDLK_p 0 0
                    KEY_CONSOLE = SDLK_BACKSLASH 0 0
                    KEY_TILT = SDLK_t 0 0

                    W 1 Reply Last reply 17 Jan 2023, 16:29 Reply Quote 0
                    • W
                      Wampa @Retro Arcade Fan
                      last edited by 17 Jan 2023, 16:29

                      @Retro-Arcade-Fan

                      Ok, you didn't paste you dapinput.ini but the last part is easy.

                      Look at your working dapinput.ini the 3rd field is the button assignment, which you have said is working:

                      Example dapinput.ini (Use yours)

                      KEY_BUTTON1 = 306 97 14 <- This last (3rd) value of 14 is button
                      KEY_BUTTON2 = 308 115 15  <- etc
                      KEY_BUTTON3 = 32 113 16
                      KEY_START1 = 49 0 4
                      KEY_START2 = 50 0 0
                      KEY_COIN1 = 53 0 1
                      KEY_COIN2 = 54 0 0
                      

                      Then transfer these values, for all assigned buttons in Daphne, to the hypinput.ini and flightkey.ini file:

                      KEY_COIN1 = SDLK_5 0 1
                      KEY_COIN2 = SDLK_6 0 0
                      KEY_START1 = SDLK_1 0 4
                      KEY_START2 = SDLK_2 0 0
                      KEY_BUTTON1 = SDLK_LCTRL SDLK_a 14  <- put it here
                      KEY_BUTTON2 = SDLK_LALT SDLK_s 15   <- ...
                      KEY_BUTTON3 = SDLK_SPACE SDLK_d 16
                      ...
                      

                      Then just make sure the axis is switched in the correct file and done.

                      R 1 Reply Last reply 17 Jan 2023, 16:42 Reply Quote 1
                      • R
                        Retro Arcade Fan @Wampa
                        last edited by 17 Jan 2023, 16:42

                        @Wampa I'm sorry Wampa, but I'm not quite following. This is my dapinput.ini file

                        KEY_UP = 273 114 2
                        KEY_DOWN = 274 102 2
                        KEY_LEFT = 276 100 1
                        KEY_RIGHT = 275 103 1
                        KEY_BUTTON1 = 306 97 1
                        KEY_BUTTON2 = 308 115 2
                        KEY_BUTTON3 = 32 113 3
                        KEY_START1 = 49 0 7
                        KEY_START2 = 50 0 0
                        KEY_COIN1 = 53 0 6
                        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 0
                        KEY_SCREENSHOT = 293 0 0
                        KEY_QUIT = 27 113 8

                        How did you want me to finalize the lfightkey.ini file with those numbers?

                        W 1 Reply Last reply 17 Jan 2023, 17:05 Reply Quote 0
                        • W
                          Wampa @Retro Arcade Fan
                          last edited by Wampa 17 Jan 2023, 17:05

                          @Retro-Arcade-Fan

                          Just taking those last numbers, done a quick and dirty transfer for you.

                          [KEYBOARD]
                          KEY_UP = SDLK_DOWN 0 0 +002
                          KEY_DOWN = SDLK_UP 0 0 -002
                          KEY_LEFT = SDLK_LEFT 0 0 -001
                          KEY_RIGHT = SDLK_RIGHT 0 0 +001
                          KEY_COIN1 = SDLK_5 0 6
                          KEY_COIN2 = SDLK_6 0 0
                          KEY_START1 = SDLK_1 0 7
                          KEY_START2 = SDLK_2 0 0
                          KEY_BUTTON1 = SDLK_LCTRL 0 1
                          KEY_BUTTON2 = SDLK_LALT 0 2
                          KEY_BUTTON3 = SDLK_SPACE 0 3
                          KEY_SKILL1 = SDLK_LSHIFT 0 0
                          KEY_SKILL2 = SDLK_z 0 0
                          KEY_SKILL3 = SDLK_x 0 0
                          KEY_SERVICE = SDLK_9 0 0
                          KEY_TEST = SDLK_F2 0 0
                          KEY_RESET = SDLK_0 0 0
                          KEY_SCREENSHOT = SDLK_F12 0 0
                          KEY_QUIT = SDLK_ESCAPE 0 8
                          KEY_PAUSE = SDLK_p 0 0
                          KEY_CONSOLE = SDLK_BACKSLASH 0 0
                          KEY_TILT = SDLK_t 0 0
                          END
                          

                          I ignored your UP/DOWN/LEFT/RIGHT button values in the dapinput.ini as they look blatantly wrong.

                          R 1 Reply Last reply 17 Jan 2023, 17:17 Reply Quote 1
                          • R
                            Retro Arcade Fan @Wampa
                            last edited by 17 Jan 2023, 17:17

                            @Wampa Thank you for the very quick responses and all of your patience. That did the trick exactly. Game is working perfectly now. Thank you again!

                            W 1 Reply Last reply 18 Jan 2023, 16:01 Reply Quote 1
                            • W
                              Wampa @Retro Arcade Fan
                              last edited by 18 Jan 2023, 16:01

                              @Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:

                              @Wampa Thank you for the very quick responses and all of your patience. That did the trick exactly. Game is working perfectly now. Thank you again!

                              No problem, I went through a similar switch recently :)

                              R 1 Reply Last reply 3 Feb 2023, 23:09 Reply Quote 0
                              • R
                                Retro Arcade Fan @Wampa
                                last edited by Retro Arcade Fan 2 Mar 2023, 23:09 3 Feb 2023, 23:09

                                @Wampa So, I read that there was an update to Hypseus for the American Laser Game games, so I ran it. Tested them and all work fine. Unfortunately, this seems to have reverted the fix we did for Cobra Command (up is down again and I can't shoot). This is strange because the config files in the configs/daphne folder seem unchanged. And the config files in the roms/daphne folder are unchanged. So I don't see why the update broke the fix.

                                Have you updated Hypseus recently?

                                W 1 Reply Last reply 4 Feb 2023, 12:13 Reply Quote 0
                                • W
                                  Wampa @Retro Arcade Fan
                                  last edited by 4 Feb 2023, 12:13

                                  @Retro-Arcade-Fan said in Cobra Command on Daphne Joystick Orientation:

                                  @Wampa So, I read that there was an update to Hypseus for the American Laser Game games, so I ran it. Tested them and all work fine. Unfortunately, this seems to have reverted the fix we did for Cobra Command (up is down again and I can't shoot). This is strange because the config files in the configs/daphne folder seem unchanged. And the config files in the roms/daphne folder are unchanged. So I don't see why the update broke the fix.

                                  Have you updated Hypseus recently?

                                  After the update the symlink probably got wiped. Just redo it:

                                  sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini
                                  

                                   

                                  R 1 Reply Last reply 4 Feb 2023, 17:28 Reply Quote 0
                                  • R
                                    Retro Arcade Fan @Wampa
                                    last edited by 4 Feb 2023, 17:28

                                    @Wampa said in Cobra Command on Daphne Joystick Orientation:

                                    sudo ln -sf /opt/retropie/configs/daphne/flightkey.ini /opt/retropie/emulators/hypseus/flightkey.ini

                                    You are my absolute hero. Thank you so much!!

                                    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.

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