If enabled, the Negative Buttons provide a positive value, and vice-versa. If enabled, the axis value will reset to zero when pressing a button of the opposite direction. Speed in units per second that the the axis will move toward the target value. All analog device values within this range result map to neutral. Speed in units per second that the axis falls toward neutral when no buttons are pressed. The button used to push the axis in the positive direction.Īlternative button used to push the axis in the negative direction.Īlternative button used to push the axis in the positive direction. The button used to push the axis in the negative direction. Negative value name displayed in the Input tab of the Configuration dialog for standalone builds. Positive value name displayed in the input tab of the Configuration dialog for standalone builds. The name of the string used to check this axis from a script. You map each axis to two buttons on a joystick, mouse, or keyboard keys. Here you can also change the settings of each axis. If you want to add new virtual axes go to the Edit->Project Settings->Input menu. Window Shake X and Window Shake Y is mapped to the movement of the window.Mouse X and Mouse Y are mapped to the delta of mouse movement.Fire1, Fire2, Fire3 are mapped to Control, Option (Alt), and Command, respectively.Horizontal and Vertical are mapped to w, a, s, d and the arrow keys.Virtual Axesįrom scripts, all virtual axes are accessed by their name.Įvery project has the following default input axes when it’s created: Alternatively you can access keys on the keyboard. Typically you use the axes and buttons to fake up a console controller. You can setup joysticks, gamepads, keyboard, and mouse, then access them all through one simple scripting interface. This Input Selector image dates back to the very earliest versions of the Unity Editor in 2005. Virtual axes and buttons can be created in the Input Manager, and end users can configure Keyboard input in a nice screen configuration dialog. Unity supports keyboard, joystick and gamepad input.