SNES USB Controller not working

Hello!

I have a Raspberry Pi 3 with Retropie, and I am using a usb snes controller from RetroDevil. This controller works perfectly in navigating the menus and playing games, but it’s not working in kodi. When I go into settings to configure the controller, it won’t map the buttons. I try to press the button, but it won’t recognize it.

Anyone know how to fix this?
Thanks!