To make a controller functional, you generally need third-party software to "translate" your controller inputs into keyboard and mouse commands: Steam Input (Recommended)
It is important to provide a realistic expectation regarding gameplay, specifically in multiplayer. battlefield bad company 2 pc controller support
Playing with a controller on PC comes with several major drawbacks compared to the console experience: To make a controller functional, you generally need