View Full Version : Documentation on input.ini commands?
ZoltanE
11-09-2009, 04:54 AM
Is there documentation on key binding commands?
While simple key bindings are pretty straightforward, I'm confused when it
comes to axis handling. I'd like to know how things work, what does
"AbsoluteAxis" or "Count" do, what's the difference between "aBaseX", "bXAxis"
and "aMouseX", this kind of stuff.
I tried searching for these keywords on UDN but no matches were found.
elmuerte
11-09-2009, 05:44 AM
I don't think that stuff is even documented, or at least, I never found a document describing the input system.
ZoltanE
11-10-2009, 06:38 AM
Too bad, but if we don't have one then let's make one.
Would anyone share their knowledge of this system? Tips, tricks, experiences, instructive
stories... anything would help.
immortius
11-10-2009, 08:07 AM
Ok, going over two lines from BaseInput.ini
Bindings=(Name="Fire",Command="Button bFire | StartFire | OnRelease StopFire")
Name is the name of the binding, Command is what it does. | is a separator, which means the bind does multiple things.
Button is a keyword meaning that the Command is linked to a boolean input variable which can be on or off. bFire is the name of the input variable in script, it can be found in the PlayerInput class.
StartFire is an exec function, which will be called when the binding is activated (it can be found in PlayerController).
OnRelease is a keyword meaning that the next statement will happen when the binding is deactivated (key is released). StopFire is another exec function.
Bindings=(Name="DoDuck",Command="Duck | Axis aUp Speed=-1.0 AbsoluteAxis=100")
Focusing on the second part of the command here, Axis is a keyword meaning that the input is linked to a float input variable. This is suitable for binding to, say, an analogue stick, which can have a range of values rather than being on or off. It can be linked to a keyboard key too though. aUp is the input variable it is linked to. Speed probably means how quickly the value changes - so if you activate the bind (press and hold the key), the variable will change from 0 to 1 over a second. Not sure about AbsoluteAxis I'm afraid.
Hopefully that explains the basics?
ZoltanE
11-11-2009, 10:36 AM
Thanks for the explanation immortius! Stuff makes sense now.
An axis' float value ranges from -1 to 1 right?
How would one remap the MouseX and MouseY axes so they move the player around
(Forward/backward, strafe left/right.)
KamiKaziKarl
12-14-2009, 08:48 PM
I believe Absolute Axis is a percentage, using a gamepad can enter a range, while the keyboard must be told 100% of input.
eAlex79
12-22-2009, 06:03 AM
http://forums.epicgames.com/showthread.php?t=648967
Maybe relevant. :D
ZoltanE
12-23-2009, 04:51 AM
Good catch!
Powered by vBulletin® Version 4.1.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.