Fabe: Thanks for the replies,I've tried joy-to-key and it doesn't work with dosbox and the free version of xpadder is incompatible with windows 7,I might just go ahead and buy Xpadder but I would rather find a free emulator if I can.
Hm, sorry for the useless reply, I wasn't sure how far you'd taken things. Obviously the remapper program is going to try to sit somehow between the interface via which once acquires the input and the program, but I guess the programs can be choosy about how they get their input and be accessing things the same way, defeating the scheme.
DOSBox seems to provide built-in key/button mapping functionality, which is possibly why this doesn't work. Possibly
this guide to the built in mapping on the dosbox wiki will give you what you need without purchase?
I'm not sure how the gog-dosbox deployments are configured though, so this approach might require you to do the mapping for each game independently. When I used to use dosbox in Linux I would just create a dosbox.cfg per game in its directory.