I have recently updated my kernel using the guide provided on this site, http://ithink.ch/blog/2013/09/08/patching_the_linux_kernel_to_install_the_xin-mo_dual_arcade_driver_on_a_raspberry_pi.html and everything worked wonderfully.
When I run jstest /dev/input/js0 all buttons and axes register perfectly. Before the kernel update left and up did not register on neither joysticks. Axes 0 and 1 is for joystick #1 and Axes 2 and 3 is for joystick #2 before the update the 0 on the axes turned to 32767 and now it has added -32767 but still the same 0,1,2,3 axes as the layout.
The first thing I do is to remove es_input.cfg and then start ES to map out a few keys to the menu.
My problem then is to map the keys to my ROMs, witch i have no idea how to lay out in retroach.