Jaguar and Atari 2600 keypad emulation

Hi all,

Is it possible to map the 0-9 number buttons in libretro (Jaguar, A2600, etc)? I’d like to map them to keyboard buttons.

Many thanks.