Assigning controls

General discussion of the Project Reality: BF2 modification.
Post Reply
Careless
Posts: 390
Joined: 2013-07-02 19:01

Assigning controls

Post by Careless »

Hi,

I have this question;

how can I assign arrows keys to control the turret on land vehicles (and perhaps the cannon/FLIR on helicopters/jets).
I know you should do it by editing the control.con, but I have no idea which line represent the movement of the mouse.

Neither I know what ID the arrow keys have to assign to.

I think it's this one
"ControlMap.addKeysToAxisMapping c_PIYaw IDFKeyboard IDKey_D IDKey_A 0"


I hope this is in the right sub-forum.

Thanks
Careless
Posts: 390
Joined: 2013-07-02 19:01

Re: Assigning controls

Post by Careless »

Bumping this thread :!:
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Assigning controls

Post by Mats391 »

Look for

Code: Select all

ControlMap.addAxisToAxisMapping c_GIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_GIMouseLookY IDFMouse IDAxis_1 0 0
and/or

Code: Select all

ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFMouse IDAxis_1 0 0
The first should be for controlling mouse in menus (e.g. spawn menu) and the second for actual ingame.

try adding those:

Code: Select all

ControlMap.addKeysToAxisMapping c_PIMouseLookX IDFKeyboard IDKey_ArrowRight IDKey_ArrowLeft 1
ControlMap.addKeysToAxisMapping c_PIMouseLookY IDFKeyboard IDKey_ArrowUp IDKey_ArrowDown 1
That should make the arrow keys alternative input for controlling your view. This however will be for all vehicles, not sure if you can make it just landvehicle specific
Careless
Posts: 390
Joined: 2013-07-02 19:01

Re: Assigning controls

Post by Careless »

'[R-CON wrote:Mats391;2042935']Look for

Code: Select all

ControlMap.addAxisToAxisMapping c_GIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_GIMouseLookY IDFMouse IDAxis_1 0 0
and/or

Code: Select all

ControlMap.addAxisToAxisMapping c_PIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_PIMouseLookY IDFMouse IDAxis_1 0 0
The first should be for controlling mouse in menus (e.g. spawn menu) and the second for actual ingame.

try adding those:

Code: Select all

ControlMap.addKeysToAxisMapping c_PIMouseLookX IDFKeyboard IDKey_ArrowRight IDKey_ArrowLeft 1
ControlMap.addKeysToAxisMapping c_PIMouseLookY IDFKeyboard IDKey_ArrowUp IDKey_ArrowDown 1
That should make the arrow keys alternative input for controlling your view. This however will be for all vehicles, not sure if you can make it just landvehicle specific
Thanks for your support

I'll try this out tomorrow!
Post Reply

Return to “PR:BF2 General Discussion”