Page 1 of 1
Assigning controls
Posted: 2014-11-09 13:32
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
Re: Assigning controls
Posted: 2014-11-12 13:19
by Careless
Bumping this thread

Re: Assigning controls
Posted: 2014-11-12 15:27
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
Re: Assigning controls
Posted: 2014-11-12 21:05
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!