project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 General Discussion
28 May 2020, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 General Discussion General discussion of the Project Reality: BF2 modification.

Reply
 
Thread Tools Display Modes
Old 2014-11-09, 12:32   #1
Careless

Careless's Avatar
Default Assigning controls

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 is offline Reply With Quote
Old 2014-11-12, 12:19   #2
Careless

Careless's Avatar
Default Re: Assigning controls

Bumping this thread

Careless is offline Reply With Quote
Old 2014-11-12, 14:27   #3
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member

Mats391's Avatar
Default Re: Assigning controls

Look for
Code:
ControlMap.addAxisToAxisMapping c_GIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_GIMouseLookY IDFMouse IDAxis_1 0 0
and/or

Code:
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:
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
Mats391 is offline Reply With Quote
Old 2014-11-12, 20:05   #4
Careless

Careless's Avatar
Default Re: Assigning controls

Quote:
Originally Posted by [R-CON]Mats391 View Post
Look for
Code:
ControlMap.addAxisToAxisMapping c_GIMouseLookX IDFMouse IDAxis_0 0 0
ControlMap.addAxisToAxisMapping c_GIMouseLookY IDFMouse IDAxis_1 0 0
and/or

Code:
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:
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!

Careless is offline Reply With Quote
Reply


Tags
assigning, controls
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 13:09.