Hum, I edited the retrogame config file and remove all buttons that weren't wired yet, and it seems to work !
I don't understand why it was working when the dtoverlay was off though... But I can go on to another issue now :)
so guys i had problems with the GPIOnext and the waveshare driver that i had. They both used pins at the same time.
Thanks mholgatem the programmer of the program he gave me some commands to type in,to configure the buttons with the right pins that are usable. So guys i wired this thing just with the single purpose of using pins who are not used and dont damage the raspberry or the display . So the commands are with my ports .
sudo python3 /home/pi/GPIOnext/config_manager.py --pins 3,5,22,10,7,29,31,32,33,35,36,37,38,40
gpionext set pins 3,5,22,10,7,29,31,32,33,35,36,37,38,40
//if you soldered your wires to different ports you can add them in the line down below !
sudo python3 /home/pi/GPIOnext/config_manager.py --pins 29,31,32,33,35,36,37,38,40