Two analog joysticks from gamepad as P1 and P2 joysticks

Hi. I have the following question:

Is it possible to map the two analog joysticks of a gamepad to function as, for example, left analog joystick as P1 Joystick and right analog joystick as P2 Joystick.

If someone thinks it’s to play games like Crazy Climber or Karate Champ, it’s right.

Other games like Raiders of the Lost Ark and Stargate for Atari 2600 require this particular configuration. Crazy Climber for Famicom requires it too.

Thanks in advance.