Double occuoancy on gamepad

Hello,

I have installed emulation station with retroarch on my raspberry pi 2 running on osmc (i think ist debian). Everything works good, big thanks from me… but I can not control the games, because retroarch automatically configures the gamepad to control retroarch menu and the input for the game on the same buttons. For example my X button is for reset the game. I have tried to change it in the menu which you can open with f1 while playing, there i See it is automatically for menu control and game control. I dont known how to change it, and switch of the Auto configuration dont helped and saves lost for the next start… I searched through the usbgamepad.cgf and retroarch.cfg but no problems found. I tried to add again the gamepad in retroarch Setup up but no changes.

Please help me