Logitech Controller Error

I own a Logitech F310 gamepad, which functions perfectly in every other game in my steam library. When I try to use it with borderlands 2, it disconnects from my computer. There is no power going to it, and my computer doesn’t accept input from it