Oh dear. I dunno then - I’m just using the standard SDL2 gamepad check.
What platform are you running it on? I’ll see if I can dig out an xbox controller and take a look. Is it an xbox 360 or OG controller?
Its just a standard XBox One Controller - this one: https://www.amazon.co.uk/dp/B078Y36QFJ?ref_=ppx_hzsearch_conn_dt_b_fed_asin_titl...
I'm on Win 11.