• 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.
  • 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.

                        This community forum collects and processes your personal information.
                        consent.not_received