Out of the box, BF II will not function with a joystick or gamepad.
Reason: The controls are tied to the keyboard and mouse by default.
Solution: Go into "*Settings*->
Controls" Then you have to manually re-configure
each movement by selecting the item you would like to change. (ex: Turn Right) Then when it asks you to press the desired "key", preform the appropriate joystick action. (ex: move the stick right, will say something like 'Joystick Y+')
This needs to be done for each and every set of controls... Infantry, Vehicle, Hero, Starship, etc. and takes forever!!!! Wish there was a preset joystick template, restoring defaults resets it back to keyboard only.
Sorry if this is a repeat post, but cannot find any search feature in the forums.