dosbox spacial keys are ignored when using joystick
-
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"
-
I updated the info aboce.
-
@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
). -
@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?
-
@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. -
@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
-
@winterelf That's not how it works. The lines you have produce
F9
andLCTRL
inside the emulated DOS system, they're not remapping the host system's keyboard.
In order to exit Dosbox, you'll need to have thehand_shutdown
mapped to the combo you want, which is what's missing from your mapper file.
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.