trying to map combo CTRL-F9 in mapper

General information and assistance with DOSBox.

trying to map combo CTRL-F9 in mapper

Postby rickreynolds » 2019-4-15 @ 21:26

I'm attempting to play Alley Cat with a controller. To exit the game, you press CTRL-F9. I've verified this works fine with a keyboard. However, I can't seem to come up with a way to map that to a controller button or buttons.

First attempt was to put definitions like this into the mapper file:

key_lctrl "stick_0 button 6"
key_f9 "stick_0 button 6"

Binding a single button to both LCTRL and F9. This doesn't work to exit the game. So I tried the next logical step:

key_lctrl "stick_0 button 6"
key_f9 "stick_0 button 8"

Binding LCTRL to one button and F9 to another, then pressing them together. This also doesn't work to exit.

So I'm wondering if I'm misunderstanding what I've read about these kinds of combinations, or if maybe there is something special about CTRL and/or function keys?

dosbox --version shows "DOSBox version 0.74-ES, copyright 2002-2010 DOSBox Team."


Some other info as asked for in the submission guidelines:

This is an ARM processor running on an H3 board.
Quad processor, 1GB ram.
Linux OS (Raspbian)

Thanks for any help.
User avatar
rickreynolds
Newbie
 
Posts: 11
Joined: 2005-7-06 @ 22:22

Re: trying to map combo CTRL-F9 in mapper

Postby Errius » 2019-4-15 @ 22:00

This is the 61,568-byte DOS rip?
"EA simply loved Syndicate so much they did it IRL."
User avatar
Errius
Oldbie
 
Posts: 1490
Joined: 2015-12-16 @ 19:16
Location: Lave Station

Re: trying to map combo CTRL-F9 in mapper

Postby rickreynolds » 2019-4-16 @ 03:23

Errius wrote:This is the 61,568-byte DOS rip?


I'm not entirely sure I follow, but if you're asking if the Alley Cat program I'm running is of that length, then no:

-rw-r--r-- 1 pi pi 55067 Feb 20 17:46 CAT.EXE
User avatar
rickreynolds
Newbie
 
Posts: 11
Joined: 2005-7-06 @ 22:22

Re: trying to map combo CTRL-F9 in mapper

Postby jmarsh » 2019-4-16 @ 03:41

ctrl-f9 is the default key combination to quit DOSBox (mapped to "shutdown"), are you sure that's not what you're looking for?
jmarsh
Member
 
Posts: 283
Joined: 2014-1-04 @ 09:17

Re: trying to map combo CTRL-F9 in mapper

Postby Errius » 2019-4-16 @ 04:09

rickreynolds wrote:-rw-r--r-- 1 pi pi 55067 Feb 20 17:46 CAT.EXE

You press CTRL+Y to quit that version, not CTRL+F9.
"EA simply loved Syndicate so much they did it IRL."
User avatar
Errius
Oldbie
 
Posts: 1490
Joined: 2015-12-16 @ 19:16
Location: Lave Station

Re: trying to map combo CTRL-F9 in mapper

Postby rickreynolds » 2019-4-16 @ 12:12

Errius wrote:
rickreynolds wrote:-rw-r--r-- 1 pi pi 55067 Feb 20 17:46 CAT.EXE

You press CTRL+Y to quit that version, not CTRL+F9.


Thanks - I'll check that out.
User avatar
rickreynolds
Newbie
 
Posts: 11
Joined: 2005-7-06 @ 22:22

Re: trying to map combo CTRL-F9 in mapper

Postby rickreynolds » 2019-4-16 @ 12:19

Thanks Errius! That is indeed correct and I'm able to exit the game with mappings like so:

key_lctrl "stick_0 button 6"
key_y "stick_0 button 6"

So now I'm left with a question of why I couldn't map CTRL-F9 properly. If that mapping was working, I should have been exiting dosbox. I'll investigate that a bit on my own now that I better understand that CTRL-F9 is an exit of the emulator rather than the game. There might have been a conflicting map for exit emulator or something like that.
User avatar
rickreynolds
Newbie
 
Posts: 11
Joined: 2005-7-06 @ 22:22

Re: trying to map combo CTRL-F9 in mapper

Postby jmarsh » 2019-4-16 @ 13:02

Ctrl-F9 is itself a mapping for the shutdown event. You were mapping keys to simulate passing ctrl-F9 to the game, which does nothing. Look for the box labelled "shutdown" on the mapper screen.
jmarsh
Member
 
Posts: 283
Joined: 2014-1-04 @ 09:17

Re: trying to map combo CTRL-F9 in mapper

Postby rickreynolds » 2019-4-16 @ 14:36

jmarsh wrote:Ctrl-F9 is itself a mapping for the shutdown event. You were mapping keys to simulate passing ctrl-F9 to the game, which does nothing. Look for the box labelled "shutdown" on the mapper screen.


Ah, got it. Thanks again everyone.
User avatar
rickreynolds
Newbie
 
Posts: 11
Joined: 2005-7-06 @ 22:22


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 0 guests