Ive used a 360 controller for TF2 on PC:
1: I really wouldnt recommend it keyboard mouse Controller
2: If you really want to use one, just go to the control settings and switch it to xbox360controller. Everything gets mapped and you can change it if you want iirc