but If I were you I'd just get a joy2key profile working.
I just looked up
the joy2key website, and the descriptions says:
"JoyToKey (or Joy2Key) enables PC game controllers to emulate a mouse and the keyboard input, so that windows applications and web games can be controlled with your favorite joysticks! Whenever joystick buttons and sticks are pressed, JoyToKey converts them into keyboard strokes and/or mouse movements so that the targeted application will work as if you are using a real keyboard and a mouse!"
I have no experience with this software, but it does look like a pretty neat solution to OP's problem. Would that work for you, Rune?