Forgot to say if you want to use a controller like a Xbox controller download this free tool:
https://github.com/AntiMicroX/antimicrox/releases/tag/3.3.3
and then some profiles for controls located here:
https://github.com/AntiMicroX/antimicrox-profiles
I haven't gotten BFBC2 controls down right yet.
When I click in the right stick it brings up the Game Menu and I can't seem to figure out how to change.
I used this profile from the link above
https://github.com/AntiMicroX/antimicrox-profiles/tree/master/applications/Xbox/sdlgamecontroller