There was a add on program for XBCD to map the keys to the pad.
Ill have a look for it.
Found this but its not the one i was on about
http://xpadder.com/
Play PC games with poor or no gamepad support
Add gamepad support to emulated, internet and DOS games
Play multiplayer games with each player using their own gamepad
Control video/music players using media or shortcut keys
Use a gamepad with a web browser or any windows application
No installation needed - Xpadder is just one executable file
Designed for Windows 98, Me, 2000, XP, Server 2003 and Vista
Full keyboard and mouse emulation
Supports up to 16 controllers at the same time for multiplayer gaming
Rumble (force feedback) and advanced fine-tuning options
Create and share any layout for any controller
Multiple profile management using sharable files
Designed for gamepads, joysticks, steering wheels, dance mats...