The purpose of this guide will be to inform a player on how to bind camera movement to the keyboard.
To begin, the player must know how to access a console. To do that, simply press the grave key (`) located at the upper left of the keyboard. Also know as a lower-case tilde (~).
SetBind Left "Axis aBaseX Speed=-200.0 AbsoluteAxis=100"
SetBind Right "Axis aBaseX Speed=200.0 AbsoluteAxis=100"
SetBind Up "Axis aLookUp Speed=-0.5 AbsoluteAxis=100"
SetBind Down "Axis aLookUp Speed=0.5 AbsoluteAxis=100"
The first word, SetBind, tells the game to set a keybinding for a specific key.
The second word(s) Left, Right, Up, and Down, determine which key the command will be bound to. A list of valid keys can be located here[docs.unrealengine.com].
The words in quotes are the command that will be bound to.the key.
You can adjust the Speed values to increase or decrease the speed the camera moves. The current values are moderately slow, but seeing how it’s a puzzle game and you’re using a keyboard, slow camera movement speeds are recommended.
Type or paste the above commands in one at a time and press Enter. You can now control the mouse rotation with your keyboard using the directional keys. These keybindings will also apply to the numpad with Numlock on.
If you want the keybindings to persist, you’ll need to enter them in a configuration file. It is recommended that you “know what you’re doing” if you want to do this.
The file is located at:
%USERPROFILE%\Documents\My Games\The Ball\UDKGame\Config\UDKInput.ini
Under the [Engine.PlayerInput] section, you’ll see these lines:
Bindings=(Name="Up",Command="GBA_MoveForward")
Bindings=(Name="Down",Command="GBA_Backward")
Bindings=(Name="Left",Command="GBA_StrafeLeft")
Bindings=(Name="Right",Command="GBA_StrafeRight")
Replace them with the following similar lines (adjust as desired):
Bindings=(Name="Up",Command="Axis aLookUp Speed=-0.5 AbsoluteAxis=100")
Bindings=(Name="Down",Command="Axis aLookUp Speed=0.5 AbsoluteAxis=100")
Bindings=(Name="Left",Command="Axis aBaseX Speed=-200.0 AbsoluteAxis=100")
Bindings=(Name="Right",Command="Axis aBaseX Speed=200.0 AbsoluteAxis=100")
If you broke everything or want to reset the inputs after editing the UDKInput.ini file, you can delete the file and it will recreate itself next time you run The Ball.