Also notice the +16 offset applied to the button numbers taken from jstest command above. (for my 8BitDo N30pro 2 vendor id is 2dc8 and product id 2865 taken from the cat /proc/bus/input/devices command). For my 8BitDo N30pro 2 this is how things mapped according to jstest (listed without the +16 offset):įor mapping the mouse to my gamepad I used Axis 0 and Axis 1, you have to use the speed setting and you have to change the min and max to 0 and 255 respectively otherwise as soon as you launch loadmap and dosbox and lock your cursor, it goes flying to one of the edges of your screen. One major thing I caught in the SourceForge Wiki with regards to button mapping for my 8BitDo N30pro 2 when used in conjunction with Linux Joystick Mapper is that apparently there's an offset of +16 for all the button mappings (but not axises!) listed here, you'll see this +16 offset applied in the map file I created further down. They recommend using the command cat /proc/bus/input/devices in order to determine your vendor and product ids used in the map file as well as the command sudo jstest /dev/input/js0 to see which buttons your gamepad maps to - make sure your gamepad is connected when running this commands. The documentation for Linux Joystick Mapper is kind of scant and not the most thorough so I did some digging through the wiki on their source forge page. map file to load into the loadmap binary, this is what you'll be launching just before DOSBox. You can either keep it with the source or move it into another directory of your choosing. Once you run the make command, the binary 'loadmap' for Linux Joystick Mapper is created for you. I had to edit the MakeFile, at the very top there's a comment: # Disable -Werror if there are compile errors, which was throwing compile errors for me, so I had to remove the -Werror from CFLAGS in order for it to build. For those of you who don't know Linux Joystick Mapper maps your Gamepad to the mouse, which the non-libretro version of DOSBox doesn't support.įirst I downloaded the source (joymap-0.4.2 as of writing this) and compiled it.
ISO PC CD ROM LITTLE BIG ADVENTURE TWINSEN TRIAL
It took me several days of trial and error to get this configured so I thought I'd share with you all what I did to get this working with my RetroPie 4.7.2 Setup (these instructions may no longer be valid/the same for later versions).