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

    dosbox spacial keys are ignored when using joystick

    Scheduled Pinned Locked Moved Help and Support
    dosbox svnraspberry pi b+
    7 Posts 2 Posters 629 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
      winterelf
      last edited by winterelf

      Hi,

      Pi Model or other hardware: RASPI4 b+ with 4GB
      Power Supply used: raspi official for pi4 USB-C
      RetroPie Version Used: 4.7.21
      Built From: Pre made SD Image on RetroPie website 1 year ago (was 4.7.1)
      USB Devices connected: wireless dongle of Logitech F710
      Controller used: Logitech F710
      Error messages received: none
      Verbose log (if relevant): none
      Guide used: DOSBox v0.74-3 Manual
      File: \retropie\roms\pc (any .map file used for key mapper)
      Emulator: dosbox (uses dosbox - SVN)

      I installed Dosbox on retropie and verify I have the files ~/.dosbox/dosbox-SVN.conf

      I run a game and press ctrl-F1 to remap keys, I remap the ctrl and F9 to my joystick buttons so I can exit the games, but seems like after remaping and saving, the keys are not exiting the game. if I run ctrl+F9 on the keyboard, it works fine.

      Anyone know why? I also try to map the ctrl and F1 , but this doesn't bring up the key mapper when using joystick.
      my game folder has mapper file with the followings:

      hand_shutdown "key 290 mod1" 
      key_f9 "stick_0 button 5" "key 290"
      key_lctrl "stick_0 button 4" "key 306"
      
      1 Reply Last reply Reply Quote 0
      • W
        winterelf
        last edited by

        I updated the info aboce.

        1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator
          last edited by mitu

          @winterelf said in dosbox spacial keys are ignored when using joystick:

          hand_shutdown "key 290 mod1"
          key_f9 "stick_0 button 5" "key 290"
          key_lctrl "stick_0 button 4" "key 306"

          Doesn't seem to be mapped correctly, shutdown is mapped only to Ctrl + F9 looking at the config you posted. Should be something like:

          hand_shutdown "stick_0 button 7 mod3" "key 290 mod1"
          ..
          mod_3 "stick_0 button 6"
          

          In the config above, buttons 6 + 7 pressed together exit Dosbox (which on my gamepad is Select + Start).

          W 1 Reply Last reply Reply Quote 0
          • W
            winterelf @mitu
            last edited by winterelf

            @mitu said in dosbox spacial keys are ignored when using joystick:

            hand_shutdown "key 290 mod1"

            I'm confused. mod1 means pressing ctrl, and key 290 is f9. So basically it is this:
            hand_shutdown "key 290 mod1"

            and if I go to f9 and also to ctrl in the keymapper, and map them to my joystick buttons respectively, isn't this supposed to work?

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @winterelf
              last edited by

              @winterelf said in dosbox spacial keys are ignored when using joystick:

              I'm confused. mod1 means pressing ctrl, and key 290 is f9.

              Indeed, this part is ok - what I was saying is that any joystick related configuration for hand_shutdown is missing.

              W 1 Reply Last reply Reply Quote 0
              • W
                winterelf @mitu
                last edited by

                @mitu but this lines use the shutdown configuration:

                key_f9 "stick_0 button 5" "key 290"
                key_lctrl "stick_0 button 4" "key 306"
                

                stick_0 button 5 and stick_0 button 4 is my joystick

                mituM 1 Reply Last reply Reply Quote 0
                • mituM
                  mitu Global Moderator @winterelf
                  last edited by mitu

                  @winterelf That's not how it works. The lines you have produce F9 and LCTRL inside the emulated DOS system, they're not remapping the host system's keyboard.
                  In order to exit Dosbox, you'll need to have the hand_shutdown mapped to the combo you want, which is what's missing from your mapper file.

                  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.