• 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

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 3 Dec 2022, 13:47 12 Mar 2022, 00:01

    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 12 Mar 2022, 13:47

      I updated the info aboce.

      1 Reply Last reply Reply Quote 0
      • M
        mitu Global Moderator
        last edited by mitu 3 Dec 2022, 19:09 12 Mar 2022, 18:49

        @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 12 Mar 2022, 22:24 Reply Quote 0
        • W
          winterelf @mitu
          last edited by winterelf 3 Dec 2022, 22:25 12 Mar 2022, 22:24

          @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?

          M 1 Reply Last reply 13 Mar 2022, 05:06 Reply Quote 0
          • M
            mitu Global Moderator @winterelf
            last edited by 13 Mar 2022, 05:06

            @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 19 Mar 2022, 15:34 Reply Quote 0
            • W
              winterelf @mitu
              last edited by 19 Mar 2022, 15:34

              @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

              M 1 Reply Last reply 19 Mar 2022, 17:23 Reply Quote 0
              • M
                mitu Global Moderator @winterelf
                last edited by mitu 19 Mar 2022, 17:23

                @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
                7 out of 7
                • First post
                  7/7
                  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