Punkbuster not updating bad company 2
In Options you probably want to unassign the joystick actions associated with being on foot or in a ground vehicle. The "Escape" key should clear a binding, but doesn't.By default, the joystick is bound to various foot and vehicle actions. The only way to clear out a binding for the joystick or mouse at this point, short of editing the file (more on that in a moment), is to click on a binding and set it to the same as some other button.
That said, do the basics first before starting the game up: look in the Device Manager to make sure your joystick is visible, is working, and has the latest driver and software (for the latter you'll need to go to the manufacturer's website).
Have fun, and credit goes to all programmer of this script!