▲ 2 r/pygame
How to get the name of controller buttons?
Hello!
I'm currently trying to get the controllers to work in my game and I noticed I couldn't find a way to get the name of the button that just got pressed. I know the JoyButtonDown events contain the id of the button, but because the layout of controllers are not always the same, I'd like to know if you can get their name without having to manually name every button for every existing controller brand.
Thanks in advance!
u/Leol6669 — 2 days ago