# Connect Inputs to the Controller

## Overview

To connect any Input to the Animal Controller you can use the [**Malbers Input** ](https://malbersanimations.gitbook.io/animal-controller/main-components/malbers-input)component

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FVYuGZkgkPFb9kOTBZ1A8%2Fimage.png?alt=media&#x26;token=dabfa8cb-44fe-44c4-8ffe-07e8ea5aec27" alt="" width="557"><figcaption></figcaption></figure>

## &#x20;Automatic Connections

All the States, Modes, Abilities and Stances have an Input parameter to connect any input to the activation of the logic automatically.&#x20;

{% hint style="warning" %}
The name of the Input of each logic  must match the Malbers Input component name
{% endhint %}

### Connecting States

For the States, find the Enter Input and Exit Input. Make sure the Name matches in both components:

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FyDJmj77H2F0afkumQvrP%2Fimage.png?alt=media&#x26;token=6a14d0c6-66c3-4fcf-bb92-14ebd5eac63d" alt="" width="563"><figcaption></figcaption></figure>

### Connecting Modes

For the modes, find the Input Parameter in the General Tab

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FiIqXVRI25knQ9lrkUwmC%2Fimage.png?alt=media&#x26;token=62697901-7f46-466b-bf33-dc1d07ab346c" alt="" width="563"><figcaption></figcaption></figure>

### Connecting Abilities inside modes

Sometimes you will need to connect a specific ability to an Input. Find the Input for an ability after selecting the Mode, then the Ability, and then, on the General Tab the input parameter.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FeBsC7XdJ8dVtudC0LlHT%2FUnity_8oFi3RIuHf.gif?alt=media&#x26;token=1d200304-c82d-42d4-8793-62c860c8c049" alt=""><figcaption><p> </p></figcaption></figure>

### Connecting the Stances

For the Stances, you can find it when a stance is selected.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FJk4fUKGhlgfVReji8xAJ%2Fimage.png?alt=media&#x26;token=66f4c085-4d8e-4b27-919b-56d198f332c0" alt="" width="563"><figcaption></figcaption></figure>

## Manual Connections

Not all logic has automatic connections, in that case, you will need to go directly to the Input Events and use the events to call the methods directly. Here are some examples:

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FgVX2ADzwyLt0D6M6dXWe%2Fimage.png?alt=media&#x26;token=8a15ed71-4024-40c1-940b-0488c62f2efe" alt="" width="559"><figcaption><p>The Sprint Input is connected dynamically to the Animal.Sprint property. </p></figcaption></figure>

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FL3z12EsYzuCOEmx8U0OK%2Fimage.png?alt=media&#x26;token=0bb3df5e-090d-488e-989e-1bc3a4f134e1" alt="" width="557"><figcaption><p>The Interact Input is connected to the Pick Up Logic</p></figcaption></figure>

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FzWKHiJxemNdyIuwYfe3x%2Fimage.png?alt=media&#x26;token=884c0ae4-31af-44ac-be70-35dbac01fbd7" alt="" width="560"><figcaption><p>The Mount Input is connected to the Rider.MountAnimal Logic</p></figcaption></figure>

Other scripts like the [**Weapon Manager**](https://malbersanimations.gitbook.io/animal-controller/main-components/weapon-manager#inputs) also have Automatic connections.
