How do I connect a bluetooth controller to PCSX2?

I installed recently the PCSX2 emulator from my Package Manager, and tried to use a bluetooth gamepad to play. But when I’m going to config the buttons, it doesn’t detect the input from the buttons.

I looked for tutorials online about the issue and always it says to go to “Config > Controllers > Plugin Settings > General > Game Device APIs”. But this only is applied to old versions of the emulator, and now there is no “controllers” config option, just gamepad settings. Where do I configure my gamepad to work on the emulator?

Most of the information you need is here Gamepad - ArchWiki
Depending on what controller you have, maybe this is related [BUG] Cannot bind controller buttons · Issue #4414 · PCSX2/pcsx2 · GitHub