I use generic usb joypad with digital "hat" axes.
In mapping config GUI, hat axis button presses often are not detected, sometimes they're displayed as "Hat xx" (for pressing hat right, for example) and not working afterwards.
Tested in ubuntu 22.04 and gentoo, xpeccy commit 3e9e35a
The same usb joypad works perfectly in MAME.