Epic games controller support is weird

I bought Spider-Man remastered on the Epic Games Store and played it with a wired controller just fine for a while but the cord was giving me issues so I bought an official Xbox controller mainly for Spider-Man, but when I tried to use my controller I was able to make it work for my steam games but not the epic games launcher. I then found you could launch Epic through steam and that fixed Fortnite, Rocket League, and other Epic Games except for Spider-Man. When I go through steam for whatever reason the controller inputs aren’t registered and do nothing and when I launch the game normally it seems like it tries to use my controller inputs but it also thinks it’s doing keyboard inputs at the same time. Does anyone know what’s going on or have a fix?