Now, to get to where you need to go:
Assign a control, any control, to you joystick. Now: Go to MyDocuments/Battlefield2/Profiles/001 (I presume the profile you use is the first one in the list of profiles) and finally, find the Controls file (It's a .con file) and open it using notepad.
I said to assign a control to your own joystick, because your joy might be named differently than mine. For me, this is what I have:
ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFGameController_0 IDAxis_0 0 1
ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFGameController_0 IDAxis_1 1 1
What this means is: By moving my joy forward, I move the screen up (or the gun, as the case will be
![Razz :P](./images/smilies/icon_razz.gif)
0 0 1 is left and right, because it is the x axis while 1 1 1 is up and down, the y axis.
Now, find your control in the list. Make certain that you have it set-up for moving the joy left and right and up and down. I like to use the joy to fly, so that's where I got mine. Next, you just copy and paste.
Add these two lines below
ControlMap.create defaultPlayerInputControlMap (it can be anywhere after this, as this is the final grouping)
ControlMap.addAxisToAxisMapping c_PIMouseLookX
ControlMap.addAxisToAxisMapping c_PIMouseLookY
Copy the control code, everythign after IDF, of the pitch to Y, and the control code for roll to X
The easiest thing to do is copy and paste
ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFGameController_0 IDAxis_0 0 1
ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFGameController_0 IDAxis_1 1 1
into the control group.
Sorry if this is confusing, writing this at 2 AM
![Razz :P](./images/smilies/icon_razz.gif)