@andros5000 You probably have the GPIO set up wrong, check the cable layout, this is a very common mistake.
Maybe this will help:
https://forum.recalbox.com/topic/16405/dragonrise-usb-controller-flip-up-down-and-left-right

I don't have a control like that, so I can't test it, I recommend that you use the search engine of the forum, there are several topics related to this type of control, maybe some of them have the information you need:
https://forum.recalbox.com/search?term=Dragonrise&in=titlesposts&matchWords=all&sortBy=topic.lastposttime&sortDirection=desc&showAs=posts&page=1