EX2 Hori stick is not working with mame .117


My computer recognizes the stick, it works fine with GGPO.
In option, the joystick is enabled.
I’ve already attempted going to game > tab > inputing buttons
Any help would be appreciated, I’m getting a headache searching all over to find the same solutions that dont work, maybe im doing it incorrectly, who knows.