Paste the line below into a text document and save it, rename the extension to .bat and run it. This will open up your game controller settings, click properties and note down what your joystick registers as and the buttons. You can then make your own controls.conf to what suits you
When copying the button numbers in windows you drop it by 1 in the controls.conf, example button 1 in the windows control panel you change to joy0Button0 for RetroFE
rundll32.exe shell32.dll,Control_RunDLL joy.cpl