Install and run jstest-gtk (It's in the software manager). In the GUI, select your gamepad and you will see a list of buttons/axies that light up when they are used. If it is showing up in there, it means the OS sees it and debugging should be focused on the specific program that you are trying to map keys with. In that situation, you can use something like AntiMicroX to rebind the keys to something your program does recognize.
If the button is not showing up in the jstest-gtk GUI, then the OS isn't seeing the keys and you may need a driver for that gamepad. (If that is the case, one thing to try is to update Mint's Kernel to 6.14, which can be done in Update Manager > View > Linux Kernels)
