Anaferon1 wrote:usb gamepad [...] A - JUMP, B - slow run.
I don't have a gamepad myself, but maybe I can give you some pointers.
Based on what you're writing, it seems your gamepad works okay, you just want the A and B buttons to fire certain keys or key combinations.
If the gamepad is not properly working, read the following, else skip this.
- - - - -
As you know, Ctrl+j enters joystick mode in Prince of Persia, which is what you need for the gamepad.
If the gamepad isn't working properly, try one or more of the following:
- Recalibrate the gamepad under Windows, after plugging it in again.
- Run INT19.COM before starting Prince of Persia.
- Check the DOSBox settings under [joystick]. Make sure timed=false and set joysticktype=2axis (or 4axis).
- - - - -
DOSBox has a key
mapper, that you can start with:
- DOSBOX.EXE -startmapper
- Or start DOSBox and then press Ctrl+F1.
Delete the existing mappings on the joystick buttons, then reassign them as needed.
Also, you could try
this shareware program, which will convert joystick input to keyboard input.