Post count: 4

If you are using a GPIO adapter you should just be able to run jstest /dev/input/* (* is your joypad input. Usually js0 or js1.)

If its a USB controller I believe you can run ./retroarch-joyconfig and the numbers corresponding to each button should show up when you press them during the instructions.

Hope this helps.