Can you try this code:
http://pastebin.com/raw.php?i=wcS7ekCw
to replace what you have in your
/opt/retropie/configs/all/retroarch-joypads/Twin_USB_Joystick.cfg
Its not ideal, but should check a couple of things.
Also a link to your controller will help.